Or you can set a flag in the constructor (instead of having an additional method for initialisation) whether the widget initialised properly and then when showing the window, check that condition first:
Qt Code:
MyWidget w; if(w.isValid()) w.show();To copy to clipboard, switch view to plain text mode
Bookmarks