Pointers With Signals and Slots
-
Hi,
What precisely doesn't work ? Got any error message ?
-
wrote on 14 Mar 2015, 19:57 last edited by
@SGaist No errors, only that the buttons do not do anything... In the function ConfirmPress I put some text into console with "qDebug() <<" this way I know nothing results from pressing a button.
-
Might be a silly question but what is the signature of ConfirmPress ?
-
wrote on 14 Mar 2015, 20:02 last edited by
@SGaist Sorry, not very familiar with the term. But, from a quick Google search this is what you want?
void ConfirmPress();
That's how it is right now, but this may change as there is little content in the function, I've just been trying to get the buttons working... I still need a way to distinguish which button was pressed as well...
-
wrote on 14 Mar 2015, 20:11 last edited by
@SGaist My bad... This is working, at a later point in my code i set the buttons to be disabled, sorry for wasting your time.
-
Yes that was it. You slot looks good.
For that second task you can use QSignalMapper)
6/6