I am developing a QGIS plugin. I have assigned the QGIS main window as the parent window of custom plugin using:

QtGui.QDialog.__init__(self, iface.mainWindow())

But after doing so the problem is that all the custom formatting in my plugin window which I did using qt creator is gone. I guess it is inheriting these properties from its parent window. Any ideas on how to restrain it from doing this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.