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. Can I use QtQuick 2 in Qt 4.8 widget?
Forum Updated to NodeBB v4.3 + New Features

Can I use QtQuick 2 in Qt 4.8 widget?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 1.2k Views 2 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
    Mike_Goza
    wrote on last edited by
    #1

    Is it possible to use QtQuick 2 components in a Qt 4.8 widget? I have been developing QtQuick 2 GUIs in Qt 5.6 using some stylized components. I was recently asked to make some QML interfaces for another program, but it is using Qt 4.8. In addition, it only has interfaces to QWidgets. I figured out how to display QtQuick 1.1 in a 4.8 QWidget, but I would like to use my new stylized components. Any way to do this? I unfortunately can't upgrade to Qt 5.6 or higher in this project.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you mean QtQuick Controls 2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Yes QtQuick 2.0, QtQuick.Controls 1.4, and maybe some others. Since QML is javascript I was hoping to only have to point QML_IMPORT_PATH to the proper QML directory in the Qt 5.6 install. I can't seem to do it correctly. I'm on Ubuntu 14.04. The only reason I'm having to do this is that I'm using ROS Indigo with Rviz and it was compiled with Qt 4.8 which only seems to have QtQuick 1.1. I'm making a plugin for Rviz and would like to use my better QML stylized controls.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          QtQuick is not only QML, it's also backed by C++.

          You also can't mix and match Qt versions like that.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mike_Goza
            wrote on last edited by
            #5

            Thanks, I was afraid that was the answer, but I thought I would ask.

            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