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

Mac, Embedded Widget, Qt changes Window attributes and WindowClass

    XMLWordPrintable

Details

    • macOS

    Description

      When a Qt widget is embedded to the provided window from a Non-Qt-Application, Qt changes the window attributes and WindowClass of the provided window. E.g., the Non-Qt-Application creates a kFloatingWindowClass, but Qt will change it to kDocumentWindowClass.

      This is wrong. In this scenario we'll never know what kind of WndClass we'll get from the Non-Qt-Application.

      Another result from this change is that Qt adds a Maximum and Minimum button to the provided window. Here, the qt application never knows which attributes the Non-Qt-Application has configured its provided window.

      A possible workaround / solution is to remove line 4759 ("if (!(q->data->window_flags & Qt::CustomizeWindowHint))

      {") to 4777 ("}

      ") of "qwidget_mac.mm".

      With this one comment, the provided window works like expected.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes