Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. HighGUI

HighGUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 146 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.
  • P Offline
    P Offline
    PVS71
    wrote on last edited by
    #1

    Using Highgui image window inside Qt Widget

    I would like to use opencv highgui image window within QT Widget in C++. So that I can add some QPushButtons at the bottom of the image. Based on these buttons I would like to do different operations.

    How to do this?
    Your help is appreciated.

    jsulmJ Pl45m4P 2 Replies Last reply
    0
    • P PVS71

      Using Highgui image window inside Qt Widget

      I would like to use opencv highgui image window within QT Widget in C++. So that I can add some QPushButtons at the bottom of the image. Based on these buttons I would like to do different operations.

      How to do this?
      Your help is appreciated.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @PVS71 You can embed external windows using https://doc.qt.io/qt-6/qtdoc-demos-windowembedding-example.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • P PVS71

        Using Highgui image window inside Qt Widget

        I would like to use opencv highgui image window within QT Widget in C++. So that I can add some QPushButtons at the bottom of the image. Based on these buttons I would like to do different operations.

        How to do this?
        Your help is appreciated.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @PVS71

        Either embed the native window as Qt Widget in a container as shown by @jsulm in the linked documentation page
        OR
        you can simply create a QImage from cv::Mat and show the image data directly through Qt using a QLabel for example.
        What is the reason for you to want the OCV Image output window?


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        1

        • Login

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