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. Mixing Qt Quick Controls 1.x and 2.x
QtWS25 Last Chance

Mixing Qt Quick Controls 1.x and 2.x

Scheduled Pinned Locked Moved QML and Qt Quick
qtquick.control
3 Posts 2 Posters 3.0k 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.
  • H Offline
    H Offline
    hamer
    wrote on 19 Oct 2015, 06:29 last edited by
    #1

    Hi,

    Qt 5.6 will contain a technology preview of the Qt Quick Controls 2 which are much more lightweight than the 1.x controls.
    Will it be possible to mix 1.x and 2 controls in the same Qml file? There will be definitely naming overlaps (for instance the type "Button" will very likely be available in both versions). How are these handled?

    Greetings,

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hamed.Masafi
      wrote on 19 Oct 2015, 06:55 last edited by
      #2

      If both modules are installed you can import them by name

      import Module 1.0 as M1
      import Module 2.0 as M2
      Item{
          M1.Button{
          }
          M2.Button{
          }
      }
      

      Remote object sharing (OO RPC)
      http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

      Advanced, Powerful and easy to use ORM for Qt5
      https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hamer
        wrote on 20 Oct 2015, 12:44 last edited by
        #3

        Thanks! Good to know that this should work.

        1 Reply Last reply
        0

        1/3

        19 Oct 2015, 06:29

        • Login

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