We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
qthelpers.bring_to_front
1 parent 26c59d2 commit b4b5790Copy full SHA for b4b5790
cdl/utils/qthelpers.py
@@ -314,8 +314,12 @@ def bring_to_front(window: QW.QWidget) -> None:
314
Args:
315
window: Window to bring to front
316
"""
317
+ # Show window on top of others
318
eflags = window.windowFlags()
319
window.setWindowFlags(eflags | QC.Qt.WindowStaysOnTopHint)
320
window.show()
321
window.setWindowFlags(eflags)
322
323
+ # If window is minimized, restore it
324
+ if window.isMinimized():
325
+ window.showNormal()
0 commit comments