Hi dogbertius,
Its said in "Widgets and Dialogs with Auto-Connect":
"uic automatically generates code in the dialog's setupUi() function to do this, so we only need to
declare and implement a slot with a name that follows a standard convention:
void on_<object name>_<signal name>(<signal parameters>);"
did you use "uic" for that class?
did you follow the naming convention?
ike
Main Topics
Browse All Topics





by: dogbertiusPosted on 2009-08-26 at 10:31:12ID: 25190118
Well, I figured it out. Really silly mistake really. In any case, it turns out that I just needed to setup my new class to inherit Ui::MainWindow and QMainWindow, and then the setupUi(this) works. Kind of disappointing though, as this is straight out of a very recent document released by TrollTech. They should update this. Also, my new main code is below.
Hopefully this helps someone else out there :) I found a similar such mistake on TrollTech forums. Cheers!
Select allOpen in new window