This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225945 - Qt5: code assistance doesn't work with QtWidgets
Summary: Qt5: code assistance doesn't work with QtWidgets
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: igor_nikiforov
URL:
Keywords:
Depends on:
Blocks: 218532
  Show dependency tree
 
Reported: 2013-02-09 21:37 UTC by soldatov
Modified: 2013-05-28 13:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2013-02-09 21:37:42 UTC
Windows XP, MinGW with MSYS, Qt 5.0.1 with MinGW
Such paths are added into %PATH%: D:\Qt\Qt5.0.1-mingw\Tools\MinGW\bin;D:\MinGW\bin;D:\MinGW\msys\1.0\bin;D:\Qt\Qt5.0.1-mingw\5.0.1\mingw47_32\bin;%Path%

Scenario:
- Add GCC4.7 toolchain
- Create "Hello Qt World" project
- Add "QT += widgets" into "Build|Qt|Custom Definitions" field
- Replace "#include <QtGui/QApplication>" on "#include <QApplication>" in
main.cpp
- Build project
===> ok
- Check newmain.cpp file
===> IDE can't find #include <QApplication>

Workaround: Add D:/Qt/Qt5.0.1-mingw/5.0.1/mingw47_32/include/QtWidgets into "Build|C++ Compiler|Include Directories" ("QT += widgets" line adds some -I flags)
Comment 1 igor_nikiforov 2013-05-28 13:38:09 UTC
It looks like https://netbeans.org/bugzilla/show_bug.cgi?id=225495 fixes resolved this issue as well. At least I cannot reproduce them after the fix.

At any case this issue is not actual if Qt 5 is installed by default on the system.