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 controls in QML
QtWS25 Last Chance

Qt controls in QML

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 5 Posters 6.9k 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
    Sreejumon
    wrote on last edited by
    #1

    Hello,

    Can I use the Qt controls in QML? Something like the Windows Forms controls in WPF ( "http://msdn.microsoft.com/en-us/library/ms742875.aspx":http://msdn.microsoft.com/en-us/library/ms742875.aspx )?

    Regards
    Sree

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      Which Qt controls?

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

        like DateTime picker? Slider ? or some custom control. Basically, I want to re-use my investment done for those control in QML as well.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexander
          wrote on last edited by
          #4

          Try this:
          "http://qt.gitorious.org/qt-components":http://qt.gitorious.org/qt-components

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alexander
            wrote on last edited by
            #5

            "http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-72":http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-72

            1 Reply Last reply
            0
            • A Offline
              A Offline
              anselmolsm
              wrote on last edited by
              #6

              Qt Components does not provide this today and should not be recommended yet to be used in applications, as it's still under heavy development and there is no guarantee of either API and features.

              Alternatives (not ideal, I know):

              • Encapsulate those controls in QGraphicsProxyWidgets then export them as Components to be used in QML
              • Create a QML based control, with a QOBject as model (this one could be the basis for a future Qt-Components part)

              Yes, if you want to contribute with Qt-Components, you're welcome! In the second link posted by Alexander you'll find information about the project and how to be part of it. :-)

              Anselmo L. S. Melo (anselmolsm)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Sreejumon
                wrote on last edited by
                #7

                Thank you very much Alexander and Anselmo. Do you recommend to use the current Qt controls in QML or just create those again in QML from scratch?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  anselmolsm
                  wrote on last edited by
                  #8

                  [quote author="Sreejumon" date="1289409061"]Thank you very much Alexander and Anselmo.
                  [/quote]

                  :-)

                  [quote author="Sreejumon" date="1289409061"]
                  Do you recommend to use the current Qt controls in QML or just create those again in QML from scratch?[/quote]

                  Well, if you have enough time and resources, I would recommend creating them in QML (of course with parts in C++).

                  But this is my opinion based on the experience I had mixing QWidgets with QML - you'll face some issues, e.g. input focus stuff, etc.

                  Anselmo L. S. Melo (anselmolsm)

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #9

                    Stupid question: What is a control? Is that how widgets are called on windows?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DenisKormalev
                      wrote on last edited by
                      #10

                      Tobias, yeah, something like that. Came from MFC or something near it.

                      bq.
                      Vincent Vega: "And you know what they call a ... a ... a Quarter Pounder with cheese in Paris?"
                      Jules: "They don't call it a Quarter Pounder with cheese?"
                      Vincent Vega: "No man, they got the metric system. They wouldn't know what a Quarter Pounder is."
                      Jules: "Then what do they call it?"
                      Vincent Vega: "They call it a "Royale" with cheese."

                      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