[Qt-creator] main.cpp errors

Heena Mahur hena18 at rocketmail.com
Mon Jun 25 10:53:11 CEST 2012





hey,I got this errors 
/home/heena/build/ptedit_1.h:313:5: error: ‘UI’ does not name a type
/home/heena/build/main.cpp: In function ‘int main(int, char**)’:
/home/heena/build/main.cpp:8:1: error: ‘UI’ has not been declared
/home/heena/build/main.cpp:8:12: error: expected ‘;’ before ‘ui’
/home/heena/build/main.cpp:9:1: error: ‘ui’ was not declared in this scope
main.cpp -
#include"ptedit_1.h"
#include"kcheckcombobox.h"

intmain(intargc,char*argv[])
{
QApplicationapp(argc,argv);
QWidget*widget=newQWidget;
UI::pteditui;//this statement is giving syntactical error, I tried to write it write class Ui_MainWindow but in vain.
ui.setupUi(widget);
widget->show();
returnapp.exec();
}
I tried to include ui_ptedit.h but it is giving more errors ,Please have a look.
Regards 
Bye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120625/2076d9a8/attachment.html>


More information about the Qt-creator mailing list