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....)?
Solved
Qt Creator and other tools
-
wrote on 18 Dec 2022, 09:48 last edited by
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?
-
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?
1/2