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. Qt5PrintSupport.dll crash when selecting thermal printer
Forum Updated to NodeBB v4.3 + New Features

Qt5PrintSupport.dll crash when selecting thermal printer

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.4k 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.
  • D Offline
    D Offline
    Dimitris Nellas
    wrote on last edited by
    #1

    Hello,
    I' m using Qt 5.2.1 MinGW on a Windows 7 machine.
    I am using the print classes of Qt regularly but i stumbled upon something very weird.

    I have a QPrintDialog where the user selects the preferred printer to print a document.
    I have used several inkjet printers without any issue but lately i need to print to a small thermal tag printer.
    When the user clicks print he selects if he wants to print to the default printer or select another one. If i have set from before the thermal tag printer as the default it prints ok, but if i show the QPrintDialog and select it from there(even without messing with the configuration), i recieve a crash from Qt5PrintSupport.dll. I checked the printer info(page size etc.) on the accepted signal of QPrintDialog and they crash as well, meaning the returned printer is not valid. Now the more weird is when i have the QPrintDialog and instead of clicking the print button, i right-click the thermal printer sometimes(like 1 of 10 attempts) it prints without crash..

    Any ideas?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You may have found a bug. You should take a look at the "bug report system":http://bugreports.qt-project.org to see if there's already something about it.

      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
      • D Offline
        D Offline
        Dimitris Nellas
        wrote on last edited by
        #3

        I looked and didn't find anything relevant.
        I guess i should post it

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you create a minimal compilable example ? That would help finding the source of that strange behavior

          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

          • Login

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