Re: [Interest] QWidget or QDialog as a singleton

2018-08-30 Thread Jérôme Godbout
my 2 cents, what I do is I make a basic QObject singleton, which provide signal, anything can hook to the signal and everybody can easily fire the signal. QObjectSingleton::showHelpDialog() could be send from anywhere by any code and I can then make my Widget change it's visibility based on this

[Interest] QWidget or QDialog as a singleton

2018-08-29 Thread Christopher Probst
Hello Everybody, Along the same lines of a question I have asked in the past, as a rule of thumb I never have a singleton hold a QWidget/QDialog from the instance of a singleton. However I am not sure why I follow this basic principle. Does anybody object to having the instance of a singleton be