Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Window scaling very slow
Forum Updated to NodeBB v4.3 + New Features

Window scaling very slow

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 3 Posters 1.5k Views 2 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.
  • H Offline
    H Offline
    Harborman
    wrote on last edited by
    #1

    Whatever I create in PyQt scales very slowly. What I mean is, when I resize the application window, its contents refresh to the new size with a significant delay. It can be 1-2 seconds.
    Also, when I created a browser and ran a php-based image galleryon it, the images were displayed super slowly. On any other browser it was fine.
    I'm running on Windows 7, but it's slow on Win 10 too. Does the app need to be optimized for Windows somehow?
    I don't have an example code, because this affects any app that I make, with or without QWebEngine.

    S 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt ?
      How did you install it ?
      Which version of Python ?
      What are you machine spécifications ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Which version of Qt ?
        How did you install it ?
        Which version of Python ?
        What are you machine spécifications ?

        H Offline
        H Offline
        Harborman
        wrote on last edited by
        #3

        @SGaist said in Window scaling very slow:

        Hi,

        Which version of Qt ?
        How did you install it ?
        Which version of Python ?
        What are you machine spécifications ?

        Hello! Here is the info. I installed everything in the PyCharm IDE, using terminal and pip install.

        Python 3.8
        PyQt5 5.15.4
        PyQt5-Qt5 5.15.2
        PyQtWebEngine 5.15.4
        PyQtWEbengine-Qt5 5.15.2

        System:
        Windows 7 64bit, Intel i5-6400, 8GB RAM, Geforce GTX 960, SSD disk

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check the NVIDIA driver ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you check the NVIDIA driver ?

            H Offline
            H Offline
            Harborman
            wrote on last edited by
            #5

            @SGaist said in Window scaling very slow:

            Did you check the NVIDIA driver ?

            Sorry for a late reply.. my driver is fine. I tried my app at school and it was a bit faster, because they have a very powerful computer there.
            If you want to see what I'm talking about, try using this php image gallery here:
            https://makitweb.com/demos/make-photo-gallery-from-image-directory-with-php
            The photos open up pretty fast, right?
            Now, make a PyQt browser and open up this same site in your browser. Should be a lot slower now. At least it is for me.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you provide a minimal script that allows to reproduce this behaviour ?

              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
              • H Harborman

                Whatever I create in PyQt scales very slowly. What I mean is, when I resize the application window, its contents refresh to the new size with a significant delay. It can be 1-2 seconds.
                Also, when I created a browser and ran a php-based image galleryon it, the images were displayed super slowly. On any other browser it was fine.
                I'm running on Windows 7, but it's slow on Win 10 too. Does the app need to be optimized for Windows somehow?
                I don't have an example code, because this affects any app that I make, with or without QWebEngine.

                S Offline
                S Offline
                StarterKit
                wrote on last edited by
                #7

                @Harborman , I noticed something similar on Win10 for my app recently. I would like to ephisize 'recently' here - I have an application that I use on Linux mostly and on Windows occasionally. And I haven't had problems with performance on Windows.

                Last week I created another simple app on Windows and noticed that window resizing happens rather slowly. As I didn't have problems before I suspect that problem lies in application code itself. For this particular simple app I have only 1 widget in main window but this widget is big QTableView with custom colors that are choosen with not optimized db queries. So, I would bet that my problem is due to slow painting of the widget.

                Now, sorry for a lot of words, but I wanted to illustrate that there might be a problem with what you show in you app.
                Nevertheless, I'll try to run my old app on this Windows system and update you with test result - is it slow or not.

                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