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. Qt4 programm starts very slow, if QPrinter is used

Qt4 programm starts very slow, if QPrinter is used

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 425 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.
  • J Offline
    J Offline
    JoGi
    wrote on last edited by
    #1

    Hello,

    I have been using Kubuntu 17.10 for a few days now and my Qt4 programs are starting very slowly now if they contain QPrinter. When I use QPrinter (for example, with the line QPrinter printer;), Kubuntu often takes more than 8 seconds, before the program runs without errors. dmsg does not show anything. Without this line, the program starts immediately as before under Kubuntu 16.04. How can I prevent this delay under Kubuntu 17.10? Thanks in advance for an answer.

    My Qt version:

    $ qmake --version

    QMake version 2.01a

    Using Qt version 4.8.7 in / usr / lib / x86_64-linux-gnu

    jsulmJ 1 Reply Last reply
    0
    • J JoGi

      Hello,

      I have been using Kubuntu 17.10 for a few days now and my Qt4 programs are starting very slowly now if they contain QPrinter. When I use QPrinter (for example, with the line QPrinter printer;), Kubuntu often takes more than 8 seconds, before the program runs without errors. dmsg does not show anything. Without this line, the program starts immediately as before under Kubuntu 16.04. How can I prevent this delay under Kubuntu 17.10? Thanks in advance for an answer.

      My Qt version:

      $ qmake --version

      QMake version 2.01a

      Using Qt version 4.8.7 in / usr / lib / x86_64-linux-gnu

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JoGi You can use strace to see where it waits:

      strace your_app
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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