PDA

View Full Version : Qt compile-time error



prykHetQuo
11th April 2010, 16:49
Qt version: 4.5.2.

I am writing an open source program, however it doesn't compile (QObject::connect() call doesn't compile).

May anyone tell me why?


The source code is available here:

http://www.cpp-software.net/temp/p-s.zip


Thank you a lot.

borisbn
11th April 2010, 21:43
your class PortScannerEngine should be derived from QObject. change

class PortScannerEngine
to

class PortScannerEngine : public QObject

P.S. by the way, do not attach small code. just insert it in your post

prykHetQuo
12th April 2010, 00:25
your class PortScannerEngine should be derived from QObject. change

class PortScannerEngine
to

class PortScannerEngine : public QObject


Thank you for your reply.

Although I had checked the QObject derivation, somehow I missed it.