Hello, I am almost done writing a sticky note program with PyQt. The main object (mother) is parent of the trayIcon and all notes windows (child) which are of type QWidget. I added a new gui to customize style (styleDialog), which is a QDialog. To the later I added the windowFlag Qt.SubWindow (see line 120) because else it finish the whole application when closed. But doing so, I cannot use the QColorDialog object from that window anymore (lines 151, 157), as it crash the application when closed. I was wondering if it is a Qt bug, or rather a problem with the structure of the program itself. Especially, I was wondering if it is ok to have the mother as a regular object, and if it is usual to manually add Qt.SubWindow to children widgets.
I tried adding various window flags and attributes on both QDialog and QColorDialog, but I could not get it to work. I would appreciate some help as this is the only detail left to finish that project! Also, I use this program nearly everyday, so I hope you will like it too!
The code is available on github: https://github.com/willbelr/qtpad/blob/master/qtpad.py
Thank you!
I tried adding various window flags and attributes on both QDialog and QColorDialog, but I could not get it to work. I would appreciate some help as this is the only detail left to finish that project! Also, I use this program nearly everyday, so I hope you will like it too!
The code is available on github: https://github.com/willbelr/qtpad/blob/master/qtpad.py
Thank you!