5

Is it possible to define for a pyqgis plugin, that the plugin dialog is always shown on top, after starting it from the toolbar?

2

1 Answer 1

5

As mentioned in comments by Nathan W, use Qt.WindowStaysOnTopHint in your init function:

    class MyCustomDialog(QtGui.QDialog):
        def __init__(self, iface):
            QtGui.QDialog.__init__(self, None, Qt.WindowStaysOnTopHint)
            ...

But it will stay on top of not only this and every other application you have.

1
  • yes, that's what I want - have it always on top. Works well - thanks a lot!
    – dassau
    Commented Aug 30, 2013 at 8:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.