I use a tool to create cpp (source) && h (header file)
Finaly on main to show the gui you use on main...
## MainWindow is class name....
MainWindow::self()->setWindowTitle( _PROGRAM_TITLE_ );
MainWindow::self()->show();
download QTutils tool -> http://ppk.ciz.ch/qt_c++/QT_utils.zip
cd QT_utils
qmake
make
Open QTUtils insert the class name on top && select mainwindow/Dialog/Widged type same as ui file && generate the code as header & source ... or only as header....
Put the file on projekt dir && run && main.cpp
on cmd dir qmake -project
call the dialog on main...
but on top from pro file ...
MOC_DIR = build/.moc
RCC_DIR = build/.rcc
OBJECTS_DIR = build/.obj
UI_DIR = ui
and final
qmake && make.




Reply With Quote
Bookmarks