[Qt-interest] Can you spot my mistake.
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Sat Aug 22 02:50:50 CEST 2009
There is no problem there... as long as he includes the moc output...
#include "moc_main.cpp"
Would cover that...
Scott
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Bob Hood
Sent: Friday, August 21, 2009 5:42 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Can you spot my mistake.
Um...you've declared MyApp as a Q_OBJECT in a module (*.cpp file)
instead of a header?
william.crocker at analog.com wrote:
> Hello list:
>
> This is a test.
>
> There is a user error in the following code.
> The run-time behavior (on Linux/X11) was
> especially insidious.
>
> You have 60 seconds to find my mistake.
> It took me 6 hours, but it was embedded
> in the other 100K lines of code in my app
> and the bad behavior did not appear until
> days after the mistake, so I am excused. :-)
>
> Good luck. GO.
>
> Bill
>
> ---------------------------------------
>
> #include <QtGui>
>
> class MyApp : public QApplication {
> Q_OBJECT
> public:
> MyApp( int argc, char **argv ) : QApplication(argc,argv) { }
> } ;
>
> int
> main( int argc, char **argv ) {
> MyApp myapp(argc,argv);
> /* rest of the app here. */
> return 0;
> }
--
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo--------------------------
-------
The amount you paid for your vehicle does not determine the
degree
to which driving laws will apply to you. Sorry.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list