Hey, thanks you two for your help. I got it working so far.
I realized my blunder - I basically had the right code, just in the wrong place.
My main now loads the .ui file, followed by
MainForm mfMain;
mfMain.setCentralWidget(formWidget);
MainForm mfMain;
mfMain.setCentralWidget(formWidget);
To copy to clipboard, switch view to plain text mode
where the ctor for MainForm goes like so
{
//...
}
MainForm::MainForm(QWidget *parent) : QMainWindow(parent)
{
//...
}
To copy to clipboard, switch view to plain text mode
This makes a lot of sense too; it works like wysota's post above.
Any idea why Gtk's (using Glade) method of interface design explicitly promotes dynamic interface loading, while in Qt land the paradigm focuses on the static method? I can see advantages and restrictions in both, but neither seems clearly better.
Bookmarks