Posts

How to keep QGIS plugins always on top of the main window?

Image
2 1 When writing a simple QGIS 3 plugin via Plugin Builder 3, is there a simple way to tell QGIS not to hide the dialog box when the mouse clicks outside it? I have tried a few options without luck, How to show QGIS plugin dialog always on top?, https://stackoverflow.com/questions/1925015/pyqt-always-on-top Or is there an option within QGIS to command plugin displays? Editing for including my code : def __init__(self, iface): #always on top self.dlg = UpdateAttributeDialog() self.dlg.setWindowFlags(Qt.WindowStaysOnTopHint) """Constructor. :param iface: An interface instance that will be passed to this class which provides the hook by which you can manipulate the QGIS application at run time. :type iface: QgsInterface """ ...