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

When using the dialog function, the top setting function is invalid (Qt:: WindowStaysOnTopHint)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.0
    • 6.4.0, 6.4.2
    • GUI: Other
    • None
    • webassembly
    • WebAssembly
    • a596ea0fe (dev)

    Description

      When using webassembly, using qdialog cannot use the top function。The code example is as follows:

      dialog->resize(100,100);

      dialog->setWindowFlag(Qt::WindowStaysOnTopHint);

      dialog->showNormal();

       

      As shown in the figure above, when I click the button to call up the dialog window, I will click the main page, that is, the dialog window will lose focus, and it will be blocked by the page that gets the focus, that is, the global top function will fail, and the entire page will not be able to return to the dialog window at this time.

      See attachment for code example.

      Attachments

        1. image-2023-01-12-16-35-15-197.png
          image-2023-01-12-16-35-15-197.png
          16 kB
        2. untitled3333.zip
          1.32 MB
        3. image-2023-01-13-15-45-42-166.png
          image-2023-01-13-15-45-42-166.png
          92 kB
        4. untitled3333(qt6.4.2).zip
          10.84 MB
        5. happlication.h
          0.8 kB
        6. happlication.cpp
          2 kB
        For Gerrit Dashboard: QTBUG-110098
        # Subject Branch Project Status CR V

        Activity

          People

            mikolaj.boc Mikołaj Boc (Inactive)
            jfccg JIEBIN CAO
            Lorn Potter Lorn Potter
            Lorn Potter Lorn Potter
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes