PDA

View Full Version : mainwindow



kaals
25th August 2012, 20:12
i have created a new mainwindow in qt designer. i have also set an action for all the buttons. i am not able to link the individual buttons for there specific use. for e.g. how should i open a saved file when i press open button in my created mainwindow....
please help asap.
THANK YOU in advance.

ObiWanKenobe
25th August 2012, 20:25
You should read about signals and slots.



connect(myButton, SIGNAL(clicked()), this, SLOT(doSomething());


or


connect(myAction, SIGNAL(triggered()), this, SLOT(doSomething());