montuno
7th March 2008, 14:09
Hello...
foremost, yes I know, there are a lot of similar questions in this forum, but I was unable to find a solution that suit my needs.
For my project it would be very nice to carry out some widgets into a dynamic library. Obviously that I ran into the "...Must construct a QApplication before a QPaintDevice.." error (qwidget.cpp)
My question is: How can I tell these widgets where to find the main event-loop?
My idea was (of course after reading tfm :o) to link QApplication::instance() to somewhat, but how? And where?
Is QAbstractEventDispatcher a useful alternative?
Thanks for any hints
(yes, I am new to c++ and qt and... certainly I working on myself to make some progress :-) to avoid such questions and to help others, maybe??)
foremost, yes I know, there are a lot of similar questions in this forum, but I was unable to find a solution that suit my needs.
For my project it would be very nice to carry out some widgets into a dynamic library. Obviously that I ran into the "...Must construct a QApplication before a QPaintDevice.." error (qwidget.cpp)
My question is: How can I tell these widgets where to find the main event-loop?
My idea was (of course after reading tfm :o) to link QApplication::instance() to somewhat, but how? And where?
Is QAbstractEventDispatcher a useful alternative?
Thanks for any hints
(yes, I am new to c++ and qt and... certainly I working on myself to make some progress :-) to avoid such questions and to help others, maybe??)