Solved How to define an OnClick event handler for a button from within Qt Creator when in the form it is not appear(I cant add it from there....)?
-
I defined a QPushButton in the MainWindow constructor:
QPushButton *testFewCommands = new QPushButton("&start testing few commands", this);
and now, I want to add OnClick function In the designer this button doesn't appear, how can I do it?
-
@RuWex
I don't know that you can given that the button is not in the Designer, and it wouldn't work even if you could. Why would you want to anyway? If you add a button in code do theconnect()
in code for sure. -
@RuWex
I don't know that you can given that the button is not in the Designer, and it wouldn't work even if you could. Why would you want to anyway? If you add a button in code do theconnect()
in code for sure.