diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index 5f51358eb2..a620d34553 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -73,7 +73,7 @@ QT_BEGIN_NAMESPACE static bool qt_pixmap_thread_test() { if (!QCoreApplication::instance()) { - qFatal("QPixmap: Must construct a QApplication before a QPaintDevice"); + qFatal("QPixmap: Must construct a QGuiApplication before a QPixmap"); return false; } diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp index f90fa71b0f..0905cbb59f 100644 --- a/src/printsupport/kernel/qprinter.cpp +++ b/src/printsupport/kernel/qprinter.cpp @@ -538,7 +538,7 @@ QPrinter::QPrinter(const QPrinterInfo& printer, PrinterMode mode) void QPrinterPrivate::init(QPrinter::PrinterMode mode) { if (!QCoreApplication::instance()) { - qFatal("QPrinter: Must construct a QApplication before a QPaintDevice"); + qFatal("QPrinter: Must construct a QCoreApplication before a QPrinter"); return; } diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 039a834214..a41d14e7d0 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -289,7 +289,7 @@ QWidgetPrivate::QWidgetPrivate(int version) #endif { if (!qApp) { - qFatal("QWidget: Must construct a QApplication before a QPaintDevice"); + qFatal("QWidget: Must construct a QApplication before a QWidget"); return; }