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

Qt::Tool not works as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.10.0
    • QPA: X11/XCB
    • None
    • OS: ArchLinux x64 with latest updates.

      Desktop: XFCE4

    Description

      #include <QApplication>
      #include <QWidget>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
      
          QWidget window;
          QWidget *tool = new QWidget(&window, Qt::Tool);
          tool->setWindowTitle("I'm tool");
          tool->show();
          window.show();
      
          return app.exec();
      }
      

      The above code isn't works as expected with Qt5 on Linux platform, but do works with Qt4.

      The tool window isn't ontop of parent window, and it will not  be hidden when parent minimized.

      PS, it seems that it works on Windows platform (tested with PyQt5)

      Attachments

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

        Activity

          People

            timxx Weitian Leung
            timxx Weitian Leung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes