View Single Post
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#13
Originally Posted by D-Iivil View Post
Thanks for this, but how do I put the input from those select boxes as arguments?
You can reach the widgets on the .ui with the ui variable in your cpp code.
Eg.

Code:
ui->myComboBox->doStuff();
About what do do with a combo box, here is some doc:
http://doc.qt.nokia.com/4.6/qcombobox.html
Qt is _very well_ documented, you should be able to find anything you want to know about it!

Originally Posted by D-Iivil View Post
And in which part of my project I should put these:
The easiest way:

In Qt Creator's UI designer, right-click a widget, click "Go to slot...", select a slot (eg. clicked() for a button), and it generates what you need where it needs to be.
 

The Following User Says Thank You to Venemo For This Useful Post: