PDA

View Full Version : QT example GUI error



Aman607
11th June 2011, 01:13
Hi everyone..I just started using qt and am trying to create a GUI from the following link.
http://sector.ynet.sk/qt4-tutorial/my-first-qt-gui-application.html

I copy paste all the files ,but when I run this program it shows the error "expected class-name before '{' token".
Kindly help me out with this,
Thankyou

Santosh Reddy
11th June 2011, 01:34
This should be basic C / C++. Are you new to C++?

The error means what it says, "expected class-name before '{' token"., the name before { is not known, may be you missed the include file?

ChrisW67
11th June 2011, 07:18
The copy and paste version, and complete zipped example ,from that site compiles just fine here. Perhaps your copy'n'paste skills are the problem here.

Aman607
11th June 2011, 11:53
Thanks..yes it was my silly mistake,it worked..
Thanks to both of you