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

When calling winId() on a QWidget before calling setWindowFlags() to make it a frameless window will cause it to return -8x0 for pos() when it is placed at 0x0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.3
    • QPA
    • Windows

    Description

      When calling winId() on a QWidget before calling setWindowFlags() to make it a frameless window will cause it to return -8x0 for pos() when it is placed at 0x0. If winId() is called after setWindowFlags() then this does not happen

      Attachments

        1. qtbug91861.zip
          1 kB
        2. qtbug91861-1.zip
          2 kB

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              andysh Andy Shaw
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes