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

Mixing Qt Quick Controls 1.x and 2.x

Scheduled Pinned Locked Moved QML and Qt Quick
qtquick.control
3 Posts 2 Posters 3.3k 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
    hamer
    wrote on 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
    • Hamed.MasafiH Offline
      Hamed.MasafiH Offline
      Hamed.Masafi
      wrote on 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 last edited by
        #3

        Thanks! Good to know that this should work.

        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