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. Any QSlider, QRadioButton, or QSpinBox already built into QML and QtQuick?
QtWS25 Last Chance

Any QSlider, QRadioButton, or QSpinBox already built into QML and QtQuick?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.8k 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.
  • S Offline
    S Offline
    spazvt
    wrote on last edited by
    #1

    I wrote a small game in Qt C++ and now trying to migrate part of it to QML. I've got a little config panel of sliders and stuff that I want to move over to QML. So far, I was able to create a C++ QDeclarativeItem object to encapsulate a QSlider and then use 'qmlRegisterType' to expose that new class to QML. The slider displays, although I can't really interact with it, so it seems that I'd have to redefine every one of the interface functions and link it up between QML and the Declarative C++ class to make it work correctly. I'm hoping that's already done somewhere and I just haven't found it yet.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raaghuu
      wrote on last edited by
      #2

      they are there in the Components module...
      you will have to import something like @import com.nokia.<platform> 1.x@

      <platform> is symbian, meego, etc depending on what you installed along with the SDK

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spazvt
        wrote on last edited by
        #3

        How do I find out what modules are available? Currently I'm developing on either Ubuntu 12.04 or Windows 7, just running the application on the desktop at the moment. So none of the cellphone OS platforms apply. I tried "import com.nokia.mingw 1.4" etc but don't know where to find what the current versions are.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          See "Desktop Components":http://labs.qt.nokia.com/2012/06/06/desktop-components-for-qt-5/,

          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