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. QPrinter and multithreading
Qt 6.11 is out! See what's new in the release blog

QPrinter and multithreading

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    SazonovD
    wrote on last edited by
    #1

    Hello to everyone.

    In my application I wish to print some data in the second thread to avoid a blocking of my application. This printing process can take about one minute. In my situation I found one intersting thing. If I print to "pdf" - file all data is printed, however when I use real printer then all pages are white, clear.

    And the second moment I discovered. While this data is printed in the second thread some text signatures are flickering in my view. OS: Windows 7, Qt: 4.8.3. In the internet I did not find solution.
    Thank for attention.

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      YuriQ
      wrote on last edited by
      #2

      Maybe you encountered a bug. Can you try newer version of Qt (5.3.1 or 4.8.6)?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SazonovD
        wrote on last edited by
        #3

        Yes, I was wrong about version. My company uses 4.8.6, but unfortunately I'm not sure about Qt updation in the near future

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          YuriQ
          wrote on last edited by
          #4

          Did you solve it? If not, can you make simple sample code to illustrate the issue? I will run it and maybe I could find solution.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SazonovD
            wrote on last edited by
            #5

            Thank for help. Next week I'try to show code.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SazonovD
              wrote on last edited by
              #6

              I see this problem was discussed here. http://qt-project.org/forums/viewthread/29549

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                YuriQ
                wrote on last edited by
                #7

                I tried to run ChrisW67's code with success on Qt 5.2.1. Soon I will run it on 4.8.6.

                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