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. Hi
Forum Updated to NodeBB v4.3 + New Features

Hi

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 1.5k 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.
  • M Offline
    M Offline
    maheshbabu
    wrote on last edited by
    #1

    Hi this is mahesh and I am new to Qml . and can you please explain how to install Qt Quick controls in Qt 5.2.

    thank u

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      It should have been installed by default when you install through the installer.
      But to use it you need to choose Qt Quick Application as your project and then import it in your QML files as,
      @
      import QtQuick.Controls 1.1
      @

      See "this":http://qt-project.org/doc/qt-5/qtquickcontrols-overview.html for more details.

      157

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maheshbabu
        wrote on last edited by
        #3

        Thanks for reply

        I am trying to use it in QtWidget Application .

        How it will work with Qt Widget Application?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maheshbabu
          wrote on last edited by
          #4

          How to import Qml File(which is having Qt Quick controls) into Qt Widget application?

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            I would suggest you to read "qtqml-cppintegration":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-topic.html and "interactqmlfromcpp":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html

            157

            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

              To implement Combobox Check "this":http://qt-project.org/doc/qt-5/qml-qtquick-controls-combobox.html#details
              However here's a simple example,
              @
              import QtQuick 2.0
              import QtQuick.Controls 1.1
              import QtQuick.Controls.Styles 1.1

              Rectangle {
              width: 360
              height: 360

              ComboBox {
                  model: ["Paris", "Oslo", "New York"]
              }
              

              }
              @

              157

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #7

                Hi maheshbabu,

                First of all, welcome to devnet,

                Could you please start new forum topics with a clear title for every question you have? This way it is easier for others to find the answers to the same questions you have.

                I will split this one for you now. This thread will be closed and you can continue with the other :
                "link":http://qt-project.org/forums/viewthread/40081/

                Qt Certified Specialist
                www.edalsolutions.be

                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