I have two windows - the main and the tool window (an image viewer). The image viewer window is created with the flag Qt::Tool: window.setWindowFlags (Qt::Tool); (for some reasons).
Now I need to show this window and give the focus to it. When I simple call:
...the focus returns to the main window. When I call the setFocus for the image viewer's window, nothing happens.Qt Code:
img_viewer->window.show();To copy to clipboard, switch view to plain text mode
The image viewer's window has only one widget - QLabel. Maybe the window can be focused if only it has a focusable widget such as QLineEdit?
Bookmarks