Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.1 Qt Quick 2 UI with Controls
Forum Updated to NodeBB v4.3 + New Features

Qt 5.1 Qt Quick 2 UI with Controls

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.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.
  • H Offline
    H Offline
    hhzhang
    wrote on 26 Jun 2013, 21:15 last edited by
    #1

    I am still new to QT.

    Today I download QT 5.1 RC1 to explore the new Desktop Controls.

    There is a "Qt Quick 2 UI with Controls" project template. I use that and it is only one qml files there. My question is that for this type of project, could I add C++ file to it? All other templates, I cannot use new Desktop controls. Anything I did wrong?

    I would still like to have both Qt and C++ work together. But I like to use the new Desktop controls.

    Thanks,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 27 Jun 2013, 07:58 last edited by
      #2

      Use "Qt Quick 2 application" template. As long as you use Qt 5.1 to build the project, Controls will be available to you.

      Using C++ with QML is always possible.

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hhzhang
        wrote on 27 Jun 2013, 14:12 last edited by
        #3

        Thank you for the reply.

        But could you be more specific? What do you mean use Qt 5.1 to build the project? I download the Qt5.1 RC1 and use the Qt Quick 2Application template. Compiler is mingw32. I look at the Project setting (under Build & Run). I could not find a setting which specify to use Qt 5.1 to build. I could see if there is a setting for 5.1 library. How do I setup to use Qt 5.1 to build?

        Thanks.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 28 Jun 2013, 06:16 last edited by
          #4

          So you are all set up good. It should work. Just include QtQuick.Controls 1.0 in your QML code.

          (Z(:^

          1 Reply Last reply
          0

          1/4

          26 Jun 2013, 21:15

          • Login

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