Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt-Components + Qt Creator Design mode
Forum Updated to NodeBB v4.3 + New Features

Qt-Components + Qt Creator Design mode

Scheduled Pinned Locked Moved QML and Qt Quick
12 Posts 4 Posters 9.6k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CreMindES
    wrote on 16 May 2011, 09:28 last edited by
    #1

    I'm trying to install and use qt-components in Qt Creator, but I haven't managed to show them up in Design mode. Here are the specification:

    Ubuntu 10.04
    QtSDK 1.1 (/home/cremindes/QtSDK/)
    Qt Creator 2.2 (/home/cremindes/QtSDK/QtCreator2.2/)
    qt-components cloned (/home/cremindes/QtProjects/qt-components/) from git (git://gitorious.org/qt-components/qt-components.git) and compiled.
    ($PATH = /home/cremindes/QtSDK/Desktop/Qt/473/gcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games )
    ($QTDIR = /home/cremindes/QtSDK/Desktop/Qt/473/gcc )

    I've have and read these threads:
    "Installing Qt-Components":http://developer.qt.nokia.com/forums/viewthread/3996/
    ".qmlproject file question":http://developer.qt.nokia.com/forums/viewthread/1508
    "Newbie question - how to show QML Components in Creator QML Design Window":http://developer.qt.nokia.com/forums/viewthread/1091
    "Qt Quick components for Symbian Technology Preview - Known issues / Troubleshooting":http://developer.qt.nokia.com/forums/viewthread/5068

    Based on these I have a simple base qml file with the line 'import Qt.labs.components.native 1.0' and I added the following line to .qmlproject file too: ' QmlFiles { directory: ["." , "/home/cremindes/QtSDK/Desktop/Qt/473/gcc/imports/Qt/labs/components/native"]
    } ' but Qt Creator should show qt-components without the last line too.

    Getting an error when switching to desing mode:
    ' Type dump C++ plugin failed. First 10 lines error:
    Usage: qmldump [plugin/import/path plugin.uri]
    Check 'General Messages' output pane for details. (4:1) '

    Sorry being to specific maybe, but I have been searching for the solution for a while now.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ckamm
      wrote on 17 May 2011, 07:59 last edited by
      #2

      bq. ‘ Type dump C++ plugin failed. First 10 lines error:
      Usage: qmldump [plugin/import/path plugin.uri]

      This means the qmldump version you are using is outdated (the sources for a new one came with Qt Creator 2.2) - unfortunately you can't rebuild it easily because the Qt version that comes with the SDK does not have private headers...

      I'm afraid the only good solution right now is getting those private headers and recompiling qmldump (can be done from Creator->Settings->Qt4->Tools).

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CreMindES
        wrote on 17 May 2011, 10:56 last edited by
        #3

        Oh, thanks, it's working now.

        I had to download the Qt 4.7.3 sources with the SDKMaintanceTool, because it didn't cover all the files that "gri posted":http://developer.qt.nokia.com/forums/viewthread/5267/#33193 .
        Then compiled it manually from terminal, because in my Qt Creator->Settings->Qt4->Tools, the QML Dump's build button is disabled (I don't now why ...).
        Finally it's working but has got "this bug":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4634.

        I will try to compile qt-creator from git later, and see whether it fixes it or not :) Thanks for you help :)

        • It's a little bit tricky to make qt-components work these days, but QtQuick and QML is quite powerful, so it worths it. I hope it will be fully supported soon in the upcoming QtSDKs :)
        1 Reply Last reply
        0
        • C Offline
          C Offline
          ckamm
          wrote on 17 May 2011, 13:04 last edited by
          #4

          So you can access all the module's types in the text editor now? Try ImplicitSizeItem, it's one of the types defined in com.nokia.symbian's plugin.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CreMindES
            wrote on 19 May 2011, 10:30 last edited by
            #5

            Yeah, Qt Creator recognize it and my QML file compiles as it should. Later I will compile the latest Qt Creator snapshot from git, and will see, whether the above bug disappear or not...

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gronerth
              wrote on 26 May 2011, 21:09 last edited by
              #6

              I have compiled qt-components, but i can't see them in the Qt Creator design mode, any suggestions?


              JETG

              1 Reply Last reply
              0
              • C Offline
                C Offline
                CreMindES
                wrote on 26 May 2011, 21:18 last edited by
                #7

                Does it compiled without an error, and are the PATH and QTDIR variables correct?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  gronerth
                  wrote on 26 May 2011, 21:47 last edited by
                  #8

                  Yeap, without error....the procedure that i have followed:

                  configure
                  mingw32-make
                  mingw32-make install

                  Now, there is a folder named "component" inside .....import/qt/


                  JETG

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    gronerth
                    wrote on 26 May 2011, 22:03 last edited by
                    #9

                    what should appear in the QtCreator? do you have a screenshot? I just have compiled: git://gitorious.org/qt-components/qt-components.git, do i have to clone the components.git?

                    Thanks...


                    JETG

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      ThomasHartmann
                      wrote on 27 May 2011, 08:25 last edited by
                      #10

                      Since the support for Qt Quick Components is not official (yet) in the Visual Designer, getting them to work is not straight forward.

                      The main problem is that for C++ to be able to load a plugin the compilers and Qt versions have to be compatible. We build Qt Creator with MSVC on Windows, but many people will use another compiler for Qt and the Components. So even setting QT_IMPORT_PATH does not work.

                      To solve this we moved the QML stuff to another process called qmlpuppet.
                      For Qt Creator 2.2 the only way to specify another qmlpuppet then the one, provided together with Qt Creator, is setting QTCREATOR_QMLPUPPET_PATH.

                      To build a custom qmlpuppet just build src\tools\qmlpuppet (in the Qt Creator source) with the Qt version you want to use and
                      set QTCREATOR_QMLPUPPET_PATH.

                      Another solution is to just build Qt Creator yourself with the Qt Version you want to use for Qt Components.

                      For the future we will make this easier of course.

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        CreMindES
                        wrote on 27 May 2011, 14:12 last edited by
                        #11

                        Hmm, that was also new to me. My problem was, something similar, I had to recompile qmldump with my own Qt version, and copy it to my latest Qt Creator snapshot.

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          gronerth
                          wrote on 27 May 2011, 14:28 last edited by
                          #12

                          I see.. it seems no so easy to achieve, thank you for the tips!!!


                          JETG

                          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