QtCreator 2.6 code completion doesn't work
-
wrote on 3 Dec 2012, 10:01 last edited by
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 ?
-
wrote on 5 Dec 2012, 13:25 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)?
-
wrote on 5 Dec 2012, 13:33 last edited by
Added them to .pro, same issue :(
-
wrote on 5 Dec 2012, 14:48 last edited by
In QtCreator try the following:
@
Go to "Tools->Options->Build&Run->Kits"
Select your BB10 Kit
Remove the content of the "Sysroot" line
Press OK
@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. -
wrote on 5 Dec 2012, 17:08 last edited by
^^^ This trick worked. Thank you wbremer
-
wrote on 8 Dec 2012, 23:21 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).
-
wrote on 12 Dec 2012, 07:55 last edited by
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. -
wrote on 12 Dec 2012, 14:28 last edited by
Another workaround:
- 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. -
wrote on 13 Dec 2012, 21:41 last edited by
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???
8/9