Seite 1 von 1

Designfehler? zwei Fenster einer Anwendung

Verfasst: 7. Juni 2006 19:17
von stefan-tiger
Hallo,

ich habe eine eigene Klasse die zwei GUI-Klassen (mit dem Designer erstellt) als member hat.

Die eine GUI ist das Hauptfenster, die andere an Dialog in dem ich ab und zu labels befüllen muss und dann anzeigen.

Manchmal klappt das, machmal kommt aber:

QFont: It is not safe to use text and fonts outside the gui thread
QObject::startTimer: timers cannot be started from another thread

und die Anwednung stürzt ab (besonders unter Windows).

Was ist hier falsch?

Verfasst: 8. Juni 2006 03:00
von patrik08
QFont: It is not safe to use text and fonts outside the gui thread
QObject::startTimer: timers cannot be started from another thread

is dass aus dem debug.... wo is den der code vom qtimer?

Schreibe mal diese paar zeilen im pro file und compiliere das ganze neu..

Code: Alles auswählen

win32:debug {
CONFIG += console
} 


die console debug gibt mehr info....

dann kannst du vielleicht etwas lesen im command ... mir hat es viel mal geholfen fehler zu finden oder falsche typen....