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

So much window flags are not accepted / working on Win32 / Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.2.0
    • GUI: Window management
    • None
    • Windows 7 / MSVC 2010 / Qt 5.2.0
    • 74fc4229856d6598c66638851c4229814589e887 ( Qt::NoDropShadowWindowHint initially, dev, 22.1.2014, 5.3)

    Description

      In following code:

      QWidget *w = new QWidget;
      w->setWindowFlags(Qt::WindowDoesNotAcceptFocus | Qt::FramelessWindowHint);
      w->setAttribute(Qt::WA_ShowWithoutActivating);
      w->show();

      The window still steals focus when clicked. I am unable to implement my popups (They worked nice in 4.8)

      Also I have very big problems with Qt::FramelessWindowHint and Qt::WA_TranslucentBackground, most commonly windows not showing at all unless I call these BEFORE ui->SetupUi. It looks like EnsurePolished() breaks them.

      Qt::Popup | Qt::NoDropShadowWindowHint should also be respected on Win32.

      How can I implement popup-like top-level frameless window that does not steal focus from its owner top-level window without using Win32/SetClassLong on it?

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              petersvp Peter Petrov
              Votes:
              16 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes