Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. QtCreator 2.6 code completion doesn't work
QtWS25 Last Chance

QtCreator 2.6 code completion doesn't work

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
9 Posts 6 Posters 6.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    borceg
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hardcodes.de
      wrote on last edited by
      #2

      Did you "declare the Qt Libraries":http://doc.qt.digia.com/qt/qmake-project-files.html#declaring-qt-libraries in the project file (.PRO)?

      while(!sleep){++sheep;}

      1 Reply Last reply
      0
      • B Offline
        B Offline
        borceg
        wrote on last edited by
        #3

        Added them to .pro, same issue :(

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wbremer
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            borceg
            wrote on last edited by
            #5

            ^^^ This trick worked. Thank you wbremer

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              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).

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                Zingam
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • Z Offline
                  Z Offline
                  zmeyc
                  wrote on last edited by
                  #8

                  Another workaround:

                  1. Create a symlink in your project folder:

                  include -> /Applications/bbndk/target_10_0_9_1673/qnx6/usr/include

                  1. 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.

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    Zingam
                    wrote on last edited by
                    #9

                    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???

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved