Hi all ! I'm having some troubles with connecting a comboBox and a function...
in .h
Code:
private slots: /*! Call a quit function. */ void slotQuit(); /*! Call a function which can show an AboutForm. */ void slotAbout(); /*! Call a function which update the view when the comboBox is changed. */ void slotCurrentSelectionChanged();
in .cpp
Code:
{ // configuring the GUI ui.setupUi(this); // do connections connect(ui.actionQuit, SIGNAL(activated()), this, SLOT(slotQuit())); connect(ui.actionAbout, SIGNAL(activated()), this, SLOT(slotAbout())); // end } // some code here... void ui_murefImpl::slotCurrentSelectionChanged() { CLinkGUI::callCurrentSelectionChanged(); }
By default I put 2 items in the comboBox... so that I can select them but I never saw the message box with ok... :eek: :eek: :eek:
(of course, the code compile fine... AND others slots function...)
Thanks a lot for the one who find out the solution :D.
edit: Oh, yeah, of course too, with the Designer I can add lower() function as a slot and it work perfectly...
this line is added in ui_muref.h (generated from uic/moc tools)
