Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35946

QPrintDialog don't work well on Windows (random crash)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.5
    • GUI: Printing
    • None
    • Windows Embedded Standard 7

      It works on a few Windows 7 Pro machines and does't work on some Windows Embedded Standard 7, here is the reason :
      QPrintDialog exec or open function calls PrintDlgEx which require the calling thread to be "Apartment Threaded" - ( CoInitializeEx(NULL,COINIT_APARTMENTTHREADED ) ), if not, the behavior is erratic.

      I think it should be explicit in the documentation that the calling thread have to be ApartmentThreaded

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johnlayt John Layt
            benjaminb Benjamin Ballet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes