Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Button over QVideoWidget
Forum Updated to NodeBB v4.3 + New Features

Button over QVideoWidget

Scheduled Pinned Locked Moved Solved Mobile and Embedded
24 Posts 7 Posters 2.8k Views 3 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.
  • QtFriend2024Q Offline
    QtFriend2024Q Offline
    QtFriend2024
    wrote last edited by QtFriend2024
    #21

    For QWidget Applications, will this ever be resolved - being able to stack QPushButton in front of a QVideoWidget, or must we always resort to QML and QTQuick applications? My application was already built as a Widget application. This is frustrating. I've spent many hours getting this to work. For my widget application, I have to throw in a dummy QQuickWidget in the stack (1px x 1px) just to get QT 6.7.3 to stack the QVideoWidget correctly inconsistently.

    1 Reply Last reply
    0
    • jsulmJ jsulm

      @QtFriend2024 Please read what @SGaist wrote. It will not work with widgets, but should work with QML.

      QtFriend2024Q Offline
      QtFriend2024Q Offline
      QtFriend2024
      wrote last edited by
      #22

      @jsulm I need this problem solved without QML.

      SGaistS 1 Reply Last reply
      0
      • QtFriend2024Q QtFriend2024

        @jsulm I need this problem solved without QML.

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #23

        @QtFriend2024 You mention that you managed to make it work with that workaround. Can you provide a minimal compilable example that shows it in action ?

        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
        • QtFriend2024Q Offline
          QtFriend2024Q Offline
          QtFriend2024
          wrote last edited by QtFriend2024
          #24

          One Solution Without QML

          I've figured a way to get the QVideoWidget to stack behind QPushButton and QLabel in a Widgets application without using QML - the camera has to be started before the stacking order is set. Otherwise, the QVideoWidget gets forced to the front no matter what you do. This worked for me.

          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