zoukankan      html  css  js  c++  java
  • QT5: QApplication, no such file or directory

    In QT5, when I use this: #include<QApplication>, QT tells :no such file or directory, even though it is all right for previous version of QT.

    It turns out these files QApplication and so on have been moved to other places.

    How to correct?

    #include <QApplication> --------------------> #include <QWidgets/QApplication>

    #include <QDialog> --------------------> #include <QWidgets/QDialog>

    #include <QLabel> --------------------> #include <QWidgets/QLabel>

    .....................blabla


    when I do this, still there are some errors, I dunno...........


    another way is to change the .pro file, make it adapt to qt4.


    In QT gui, the application is necessary for a program, it is used for managing the program application resources.

  • 相关阅读:
    C#泛型
    C#接口
    C#委托和事件
    Unity Ray 射线
    C#学习基础
    Graph | Eulerian path
    Careercup | Chapter 8
    Leetcode | Pow(x, n)
    Leetcode | Gray code
    分布式缓存
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/5328883.html
Copyright © 2011-2022 走看看