Abstract Class -> ASSERT failure in QWidget: “Widgets ....
Verfasst: 2. August 2013 20:04
Hi to everyone!
Ich wntwickle mit Qt 5.1 (VS2012 – 32bit).
Ich hab ein eigenartiges Problem! Ich verwennde eine Abstrakte Klasse als interface für alle meine Log-Klassen!
Eine davon (Popuplog) erzeugt ein Fenster früher QMessageBox jetzt ein QMainWindow
Wenn Ich schreibe:
Popuplog *p = new Popuplog();
p->error(“blah blah”);//this is a virtual function -> virtual void iLog::error(QString&) = 0;
funktionierts super!!
Aber bei:
iLog *p = new Popuplog();
p->error(“blah blah”);
stürzt meine software ab (mit der Meldung):
ASSERT failure in QWidget: “Widgets must be created in the GUI thread.”, file kernel\qwidget.cpp, line 1111
QObject::killTimers: timers cannot be stopped from another thread
Ich hab wirklich keine Ahnung an was das liegt!
lg Leocor
Ich wntwickle mit Qt 5.1 (VS2012 – 32bit).
Ich hab ein eigenartiges Problem! Ich verwennde eine Abstrakte Klasse als interface für alle meine Log-Klassen!
Eine davon (Popuplog) erzeugt ein Fenster früher QMessageBox jetzt ein QMainWindow
Wenn Ich schreibe:
Popuplog *p = new Popuplog();
p->error(“blah blah”);//this is a virtual function -> virtual void iLog::error(QString&) = 0;
funktionierts super!!
Aber bei:
iLog *p = new Popuplog();
p->error(“blah blah”);
stürzt meine software ab (mit der Meldung):
ASSERT failure in QWidget: “Widgets must be created in the GUI thread.”, file kernel\qwidget.cpp, line 1111
QObject::killTimers: timers cannot be stopped from another thread
Ich hab wirklich keine Ahnung an was das liegt!
lg Leocor