M
M
Mercury132021-09-03 20:05:20
Qt
Mercury13, 2021-09-03 20:05:20

How to modify a Qt::Popup window so that when the PROGRAM loses focus, the window does not disappear?

The Qt::Popup window flag controls four things about window behavior.
1. Narrow window shadow.
2. Always on top.
3. When WINDOW loses focus in favor of another window of the same program, the window disappears.
4. When the PROGRAM loses focus in favor of another program, the window disappears.

How to remove the fourth window with the Qt::Popup flag, leaving everything else?

higher level task. Make a pop-up window without a frame, in which there is a large pile of information - and the user must copy this information, check it with the Internet, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2021-09-04
@Mercury13

Open the Standard Sample Application with Flags , and find the combination you need. I would start with something like:

Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint

And the third point to implement manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question