[Qt-interest] duplicate symbol

"Alexander Carôt" alexander_carot at gmx.net
Mon Oct 4 21:23:40 CEST 2010


Hi Andre,

> > I have a class, which inherits from QThread and hence cannot inherit
> from QWidget at the same time.
> This is the place to start asking: why?! What do you need to achieve? 
> Are you trying to do multi-threaded rendering or something like that? 
> That is *not* going to work, even if you get it to compile.

the whole thing is not really difficult: The class inherits from QThread and in turn gives me the respective run() function. The actual thread works fine. A long time ago this function was a simple sort of circularbuffer but due to numerous reasons I wanted to have a special GUI associated to this class. Since a class cannot inherit from QThread and QWidget at the same time I simply declared a QWidget within the class, which all works fine. That's the simply story.

The problem I mentioned last time is indeed a different story - not that important - but I need to think it over and will get back.

Best regards

-- A l e x
-- 
http://www.carot.de
http://www.triologue.de
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797



GRATIS: Spider-Man 1-3 sowie 300 weitere Videos!
Jetzt freischalten! http://portal.gmx.net/de/go/maxdome



More information about the Qt-interest-old mailing list