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. QPrint error or QPainter error ? (QWin32PrintEngine)

QPrint error or QPainter error ? (QWin32PrintEngine)

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 401 Views
  • 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.
  • C Offline
    C Offline
    Corveejet
    wrote on 25 Aug 2021, 14:59 last edited by
    #1

    Hi everyone,

    My application crash after a moment (5-10 hours) when a draw for preview and print into pdf.

    The error have obtain is:

    QWin32PrintEngine::metric: GetDeviceCaps() failed, might be a driver problem
    ASSERT: "hdc" in file qwindowsnativeimage.cpp, line 74
    createDIB: CreateDIBSection failed.
    

    Here it crash at QPlainTextDocumentLayout::draw(QPainter *, const PaintContext &).

    I use qt5.3.0 on windows 10 32bits.

    Can anyone help me please ?

    regards.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Aug 2021, 17:31 last edited by
      #2

      Hi,

      You might want to start by using a more recent version of Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Corveejet
        wrote on 26 Aug 2021, 06:59 last edited by
        #3

        Hi @SGaist ,

        Thanks for the answer.

        Surprisingly, i suspect that but for technical reason i can't to that yet....

        So i can i fix this error ?

        Regards.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Aug 2021, 20:33 last edited by
          #4

          Testing with a more recent version will allow you to know if it was a bug fixed and then you can investigate to see if you have to something to back port to your Qt version.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply 31 Aug 2021, 08:01
          0
          • S SGaist
            26 Aug 2021, 20:33

            Testing with a more recent version will allow you to know if it was a bug fixed and then you can investigate to see if you have to something to back port to your Qt version.

            C Offline
            C Offline
            Corveejet
            wrote on 31 Aug 2021, 08:01 last edited by
            #5

            @SGaist,

            Sorry for the delay. Yes it just a problem of version. Thanks.

            regads.

            1 Reply Last reply
            0

            1/5

            25 Aug 2021, 14:59

            • Login

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