[Qt-interest] Error when building demo application TextFinder

George Panagopoulos qt at eyeway.gr
Tue Nov 15 16:26:11 CET 2011


Hi list,

I am new to Qt and I am trying to learn from the example applications 
included in the tutorial.

The demo app I was testing is the TextFinder app described in the Qt 
creator tutorial here: 
http://doc.qt.nokia.com/qtcreator-2.3/creator-writing-program.html

Problem is that when I try to build and run the application I get an 
error "..\TextFinder\textfinder.cpp:9: error: expected 
primary-expression before ')' token"

After some search I found that this is caused by this line of code: 
QMetaObject::connectSlotsByName(TextFinder);
wich is suposed to connect the pushbutton signal to the corresponding slot.

Although it is not clear in the tutorial where this line of code should 
be placed, I placed it inside the constructor and after this line of 
code: ui->setupUi(this);

Could you please tell me what is wrong and why so I learn something out 
of this?

Thank you in advance.

George


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111115/c33c6779/attachment.html 


More information about the Qt-interest-old mailing list