I have attached the project as a zip file, hope that OK
I have attached the project as a zip file, hope that OK
try this
Qt Code:
{ Q_OBJECT public: .... }; { }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Thanks but I still get the same error
"You can't do that without a process to debug."
Grrr
did you rebuild all project? did you remove old obj-files? did you run qmake after cleaning project dir?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Yes, after cleaning the project I checked the files were deleted Ok. I think Eclipse handles the Qmake process, however I did it manually from the command line. But I still get the same error.
Thanks
Thanks wysota, that's good to know. Still not working here, I also have Qwt 5.1.1 installed with Qt 4.4.3 running on xp using eclipse. I get the same problem usng QDevelop. As I metioned earlier I have other projects using the qwt library, however I am not subclassing QwtPlot, I'm adding it as a widget to a MainWindow with no problems, I suppose I'll have to live with it for now
Thanks once again for your time
Don't use any IDEs if you want to pinpoint a problem. Use plain qmake && make combination, it's the most reliable you can get.
First of all:
The output you're reporting is simply the message of Eclipse complaining that it can't run the debugger after your program crashed, so your Eclipse isn't set up properly.
So set up your gdb in Eclipse, start the program in debug mode and see where it crashes. Figure out what's wrong (possible not initialized ptr / member) and fix it.
Aren't you used to work with debuggers
Another thing:
It makes perfectly sense that the upd slot isn't available on connection w/o moc generating the meta info for your QObject.
The other slots you're connecting are already defined in QWidget (which gets inherited by QwtPlot), which has the macro, so they are known.
Make sure you dig again trough the Qt documentation and get the difference between an C++ object (which you get by subclassing) and Qt META objects (which require an additional Q_OBJECT macro to be created).
See QObject::staticMetaObject() ...
Hope this helps somehow to get things together and didn't confuse too much
regards,
Bjoern
Bookmarks