QtCreator 2.6 code completion doesn't work
QtCreator 2.6 says that it can't find Qt headers and thus no code completion for them. If I use #include <QUdp> or #include <QtGui/QPainter> this line gets underlined with message No such file or directory. But qmake/compile works without problem. I'm using "Qt 4.8.3 libs for blackberry (arm and x86)":http://supportforums.blackberry.com/t5/Native-Development/QT-4-8-4-yes-4-8-4-Build-Posting/td-p/1955091, here is qcc-base-qnx.conf http://pastebin.com/WvnvrgA8 which clearly shows that include path is set by qmake paths.
How to solve this problem ?
hardcodes.de last edited by
Did you "declare the Qt Libraries":http://doc.qt.digia.com/qt/qmake-project-files.html#declaring-qt-libraries in the project file (.PRO)?
Added them to .pro, same issue :(
In QtCreator try the following:
Go to "Tools->Options->Build&Run->Kits"
Select your BB10 Kit
Remove the content of the "Sysroot" line
Maybe not the best fix, but it should work for the moment.
Furthermore, I suggest to keep an eye on the "BB10 Qt guide":https://qt-project.org/wiki/Qt-Creator-with-BlackBerry-10.
It will be updated continuously.
^^^ This trick worked. Thank you wbremer
tobias.hunger last edited by
Are you running creator in the correct environment? As far as I know the blackberry NDK makes heavy use of environment variables for its configuration. If those are not correctly set up then creator can not pick up the headers and other required information.
Check the details of the Qt version and make sure the paths reported are sensible (Tools > Options > Build & Run > Qt Versions).
Everything looks properly set here but it doesn't work without the trick. And overall nothing works quite right for me.
To compile for the simulator the x86 mkspec needs to be selected manually and then the debugger fails to start, connect and to do anything or it simply crashes.
- Create a symlink in your project folder:
include -> /Applications/bbndk/target_10_0_9_1673/qnx6/usr/include
- Add to .pro:
INCLUDEPATH += include include/qt4/QtCore include/qt4/QtSql
Autocompletion should now work.
If debugger fails try rebooting the device.
Also make sure QDE is not running.
I do use Windows. So far I have absolutely no success with the debugger on the simulator.
Is that applicable to Qt Creator/BB10 on Windows?
Anyway... Does anyone have an idea what are the future plans for Qt Quick and Qt Creator on BB10? Will they be officially supported and improved or they are just a byproduct of the Cascades UI development???