Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. when using the qml occured the errors.couldnt find the wrong code line.
Forum Updated to NodeBB v4.3 + New Features

when using the qml occured the errors.couldnt find the wrong code line.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 36 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nicker playerN Offline
    nicker playerN Offline
    nicker player
    wrote last edited by
    #1
    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?

    jsulmJ 1 Reply Last reply
    0
    • nicker playerN nicker player
      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote last edited by
      #2

      @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...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved