简体   繁体   English

如何修复QtonPi的C ++包含?

[英]How can I fix my C++ includes for QtonPi?

I am trying to cross compile my windows/mac/linux application to Qt On Pi 0.2, I have a build environment setup for this purpose and am trying to work my way though its configuration. 我正在尝试将我的windows / mac / linux应用程序交叉编译为Qt On Pi 0.2,我有一个用于此目的的构建环境设置,并且我正在努力通过其配置工作。

However where I have: 但是,我有:

#include <QApplication>
#include <QDebug>

it's telling me that it cannot find it unless I change it to: 它告诉我它找不到它,除非我把它改为:

#include <QtWidgets/QApplication>
#include <QtCore/QDebug>

I don't really want to change all my includes as this is a big application. 我真的不想改变我的所有包含,因为这是一个很大的应用程序。 What am I missing in my environment setup to cure this? 我在环境设置中缺少什么来解决这个问题?

This is a ubuntu 12.04 32bit setup. 这是一个ubuntu 12.04 32位设置。

Ok, someone over at Qt On Pi Mailing list pointed out that I needed to include the: 好吧,有人在Qt On Pi邮件列表上指出我需要包括:

QT += widgets

in my qmake project file. 在我的qmake项目文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM