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