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

Non Modal dialog popsup with QPrinter involvement

    XMLWordPrintable

Details

    • Windows

    Description

      In Qt6 when QPrinter is used, a message popups: "Please wait for printer connection or cancel connection."
      This is not the modal dialog and you can not only push the cancel button but you can interact with the entire application and even close it, This is very dangerous, because the object, to which the slot belongs to might be destroyed before the QPrinter object is initialized. 

      attached tiny example can show the issue. Just Hit Print Button.

      In Qt5 the whole application were blocked for couple of seconds.

      Attachments

        1. 02.10.2024_14.53.46_REC.mp4
          1.71 MB
        2. qtbug129623_2.zip
          4 kB
        3. qtbug129623.zip
          23 kB
        4. release.zip
          9.66 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes