Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50247

Unable to draw OpenGL based widget inside widget drawn using Qt:: WA_TranslucentBackground

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2
    • GUI: OpenGL, QPA: Windows
    • None

    Description

      This is an iPad image which serves as the 'base' widget - http://imgur.com/RnSghvV

      I need to draw this as a standalone widget, and then in the viewport, render other elements (drawn through OpenGL). The attached code works fine in Mac.

      With this, the iPad image comes up correctly. But when I try to add the OpenGL rendered QWidgets inside it, they show up blank in Windows.

      It works fine in Mac, and for other kind of sub-widgets in Windows as well, only problem is with OpenGL based sub-widgets in Windows, due to the property Qt:: WA_TranslucentBackground.

      Any solution which renders the sub widget correctly will be okay. or if that is not possible, a solution involving displaying the iPad image widget without using Qt:: WA_TranslucentBackground will be okay as well.

      Attachments

        1. MyFrame.cpp
          0.5 kB
          Kaustav Mukherjee
        2. MyFrame.hpp
          0.2 kB
          Kaustav Mukherjee
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            Cupidvogel Kaustav Mukherjee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes