Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How do I create a tool window that is never activated?



  • I need a tool window that contains some buttons and combo box menus. It's used as a formatting toolbar for a text edit. I'd like it to be never activated since it deactivates the main window and disables some control in it.

    I've tried setAttribute(Qt::WA_ShowWithoutActivating) and the window does show up un-activated. But it still become activate when clicked.

    This is with Qt 4.8.4.

    Thanks.


Log in to reply