when using the qml occured the errors.couldnt find the wrong code line.
-
QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setCompositionMode: Painter not active QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 3 ASSERT: "img.format() == QImage::Format_ARGB32_Premultiplied || img.format() == QImage::Format_RGB32 || img.format() == QImage::Format_Indexed8 || img.format() == QImage::Format_Grayscale8" in file effects\qpixmapfilter.cpp, line 705 qml: t_result C:/Users/Administrator/Desktop/snapchot.png.txt QPaintDevice: Cannot destroy paint device that is being painted QPainter::scale: Painter not active QPainter::setRenderHint: Painter must be active to set rendering hints ASSERT: "!qFuzzyIsNull(c)" in file c:\users\qt\work\qt\qtbase\include\qtcore\../../src/corelib/tools/qsize.h, line 202 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setCompositionMode: Painter not active QPainter::end: Painter not active, aborted
when i used the qml in the project.
and open the filedialog with the qml .
the project was crashed.
it was hard to paste the qml code cause there were lots of files.
so how to find the wrong place.any good ideas? -
QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setCompositionMode: Painter not active QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 3 ASSERT: "img.format() == QImage::Format_ARGB32_Premultiplied || img.format() == QImage::Format_RGB32 || img.format() == QImage::Format_Indexed8 || img.format() == QImage::Format_Grayscale8" in file effects\qpixmapfilter.cpp, line 705 qml: t_result C:/Users/Administrator/Desktop/snapchot.png.txt QPaintDevice: Cannot destroy paint device that is being painted QPainter::scale: Painter not active QPainter::setRenderHint: Painter must be active to set rendering hints ASSERT: "!qFuzzyIsNull(c)" in file c:\users\qt\work\qt\qtbase\include\qtcore\../../src/corelib/tools/qsize.h, line 202 QPainter::end: Painter not active, aborted QPainter::begin: Paint device returned engine == 0, type: 3 QPainter::setCompositionMode: Painter not active QPainter::end: Painter not active, aborted
when i used the qml in the project.
and open the filedialog with the qml .
the project was crashed.
it was hard to paste the qml code cause there were lots of files.
so how to find the wrong place.any good ideas?@nicker-player said in when using the qml occured the errors.couldnt find the wrong code line.:
so how to find the wrong place.any good ideas?
Do you use QPainter somewhere?
You seem to make screen-shots - I would start there.
You can also remove functionality step by step until it does not crash anymore then you know where it happens.
Also, debugger is the usual tool to investigate problems...