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. Qml application with opencv
Forum Updated to NodeBB v4.3 + New Features

Qml application with opencv

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 3 Posters 4.9k 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.
  • J Offline
    J Offline
    Javeria
    wrote on last edited by
    #1

    Hello, im trying to create a desktop application with an attractive gui but im not sure if i can use imshow function mouse call back function with QML apps, is it possible to make them work together? as i want the image view in the gui integrated with opencv

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      It seems you need some sort of communication between C++ and QML. Have a look at "Integrating QML and C++":http://doc.qt.io/qt-5/qtqml-cppintegration-topic.html document.

      157

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Javeria
        wrote on last edited by
        #3

        Is it possible to integrate opencv namedwindow with QML ? as it is an important part of my application where the user needs to interact with this window

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Yes. Basically you have to wrap the code inside QObject or QQuickItem derived clasess and register them as QML instantiable types. Try googling "qml opencv" to find some example projects.

          157

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Javeria
            wrote on last edited by
            #5

            Okay and i already have Qt 5.4 installed so which version of Qt quick should install?

            1 Reply Last reply
            0
            • p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

              Since Qt 5.4 is installed QtQuick 2.4 should be there already.

              157

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

                Hi,

                "LiveCV":http://livecv.dinusv.com might be interesting in your case if your application is GPL

                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
                • J Offline
                  J Offline
                  Javeria
                  wrote on last edited by
                  #8

                  Can you explain how we can wrap the opencv windwo with QtQuickItem?

                  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