[Qt-interest] Fwd: Error when building demo application TextFinder

George Panagopoulos qt at eyeway.gr
Tue Nov 15 16:39:46 CET 2011



-------- Αρχικό Μήνυμα --------
Θέμα: 	Error when building demo application TextFinder
Ημερομηνία: 	Tue, 15 Nov 2011 17:26:11 +0200
Από: 	George Panagopoulos <qt at eyeway.gr>
Προς: 	Qt-interest at qt.nokia.com <Qt-interest at qt.nokia.com>



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/9d0efc00/attachment.html 


More information about the Qt-interest-old mailing list