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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes