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. [SOLVED] Spreadsheet example crashes on QPrinter statement
Forum Update on Monday, May 27th 2025

[SOLVED] Spreadsheet example crashes on QPrinter statement

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.5k Views
  • 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.
  • T Offline
    T Offline
    TheCrowKaka
    wrote on last edited by TheCrowKaka
    #1

    Hello

    I am trying to run the Spreadsheet example for demonstration of the QPrinter class. I am using Qt5.5 Mingw on Windows 10 computer.

    This example runs properly. However, when I press the Print menu item, the application hangs. I have to force close the application.

    This same example works well on Linux but having problem running it on Windows.

    Tried searching for a solution but unable to find a relevant one.

    I am doing something wrong or do I need to install something more for this QPrinter to work?

    Regards

    Kaka

    A Qt Enthusiastic...

    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 might have found a problem with Windows 10 (new platform) You should check the bug report system to see if it's something known

      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
      • T Offline
        T Offline
        TheCrowKaka
        wrote on last edited by
        #3

        Thanks.

        I will look at that. I feel this could be a bug. I tried running the program on qt4.8.6 assuming that might be a problem of Qt5.5, but still the same thing happens.

        I will check if it is a known bug.

        A Qt Enthusiastic...

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TheCrowKaka
          wrote on last edited by
          #4

          I installed the same environment on another computer running windows 10... and the example worked. The QPrinter did not give any error.

          What could be wrong on my Windows 10 PC that this example does not run and hangs at QPrinter declaration. Any Ideas?

          A Qt Enthusiastic...

          mrjjM 1 Reply Last reply
          0
          • T TheCrowKaka

            I installed the same environment on another computer running windows 10... and the example worked. The QPrinter did not give any error.

            What could be wrong on my Windows 10 PC that this example does not run and hangs at QPrinter declaration. Any Ideas?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Do you have any stall printers in list. Like old one not used anymore.
            or a network printer that is not around currently.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TheCrowKaka
              wrote on last edited by
              #6

              Yes, I have network printer installed that is not around currently. There are no old printers installed.

              A Qt Enthusiastic...

              mrjjM 1 Reply Last reply
              0
              • T TheCrowKaka

                Yes, I have network printer installed that is not around currently. There are no old printers installed.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @TheCrowKaka
                Ok. I have seen cases where it made application lags when trying to enum the capabilities and
                it seems to hang for some time out to happen.
                But in my case it also affected other non qt programs when entering their print setup.
                So did u try with others programs to see if they have lag issues?

                1 Reply Last reply
                1
                • T Offline
                  T Offline
                  TheCrowKaka
                  wrote on last edited by
                  #8

                  Oh

                  Thanks MrJJ for your tip. Indeed i noticed that none of the applications were entering their print setup.

                  Then on searching I came across a simillar problem reported here.
                  [http://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/windows-10-working-fine-for-2-weeks-suddenly-print/0aa3af09-81fe-46b2-8267-ac594e986c8e?tab=question&status=AllReplies#tabs](link url)

                  And on removing the Nitro PDF program using the tool from their website, the QPrinter started working.

                  Thanks for your help.

                  A Qt Enthusiastic...

                  1 Reply Last reply
                  1

                  • Login

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