views:

180

answers:

3

Hey guys,

I have the file about.ui. As you know, inside the qt design i can do the ui.h file... But how can i make the "about.h" and the "about.cpp" from my .ui file? i have to create a .moc file too?

How can i compile this after create to see if all be done correctly?

Thanks from Brazil! :-)

*I´m using qt 3.2

A: 

QMake (actually uic) will automatically generate a ui_about.h file that you can use to make about.cpp (just make sure to get the .pro file right). Here's a tutorial

You might want to use the lastest Qt (4.6) too btw.

Januz
A: 

You don't.
The about.ui generates a ui_about.h which you include in your own about.h

You then create you own class deriving from this class

class about :   public QDialog, public Ui::about
{
    Q_OBJECT;
....
}
Martin Beckett
A: 

IN VS2008 Follow this step Go to Form Files->Add->Class->Qt4Classes->Q4GuiClass->Add , then Fill the class name and click on Finish.

Megh