[Qt-creator] main.cpp errors

Orgad and Raizel Shaneh orgads at gmail.com
Mon Jun 25 10:54:27 CEST 2012


On Mon, Jun 25, 2012 at 11:53 AM, Heena Mahur <hena18 at rocketmail.com> wrote:

>
>
> 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"
>
>
> int main(int argc,char *argv[])
>
> {
>
> QApplication app(argc,argv);
>
> QWidget *widget=new QWidget;
>
> UI::ptedit ui;//this statement is giving syntactical error, I tried to write it write class Ui_MainWindow but in vain.
>
> ui.setupUi(widget);
>
> widget->show();
>
> return app.exec();
>
> }
>
> I tried to include ui_ptedit.h but it is giving more errors ,Please have a look.
>
> Regards
>
> Bye
>
>
>
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
That should be Ui, with non-capital i.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120625/2326c18c/attachment.html>


More information about the Qt-creator mailing list