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

Suggestion: Be able to change window flags to an open window without hiding it

    XMLWordPrintable

Details

    Description

      It would be convenient to be able to set the window flags immediately to a window that is shown.

      Currently the window is hidden and the it must be re-shown, this causes a "flash" effect when the window is hidden and shown rapidly.

      The problem is demonstratable with the following code:
      #include <QtGui>
      #include <QDebug>

      class CustomWidget : public QWidget
      { Q_OBJECT
      public:
      CustomWidget(QWidget* parent=0) : QWidget(parent)
      { }

      public slots:
      void aSlot()

      { qDebug() << "aSlot invoked"; setWindowFlags( Qt::Tool ); show(); }

      };

      #include "main.moc"

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      CustomWidget wid;
      wid.show();

      QTimer::singleShot(2000, &wid, SLOT(aSlot()));

      return app.exec();
      }

      Attachments

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

        Activity

          People

            monsen Marius Bugge Monsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes