PDA

View Full Version : Embedding



shrikarcse
27th March 2006, 18:52
HEY I HAVE GENERATED AN UI FILE USING qt designer now i want to use it in my cpp file , i mean to say i want to take the input from the form and then process it in my cpp file how shud i do it.
plz tell me how to compile.
how to link it
thanks in advance

jrideout
27th March 2006, 19:06
Take a look at the docs on your options with using the ui file.

http://doc.trolltech.com/4.1/designer-using-a-component.html

You will need to connect a signal for whatever widget lets you know the form is done being edited, like the click from a submit button or similar. Implement a slot that then access the data like QString myString = lineEdit->text();