Results 1 to 12 of 12

Thread: Image-based widgets showing is too slow in Qt 4.2.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Image-based widgets showing is too slow in Qt 4.2.1

    Quote Originally Posted by marcel View Post
    Try increasing the pixmap cache, with QPixmapCache::setCacheLimit(int).
    If I remember correctly you have to pass a number of kilobytes there. An 1280*1024 pixmap will automatically not be cached since the initial limit is 1Mb.
    I increased cache limit up to 32Mb but flash in show/hide-operations still going on. But redrawing is a faster subjective.

    Quote Originally Posted by marcel View Post
    Next, maybe you can make some use for QPaintEvent::rect and update only the dirty area.
    Its right but not for total widget repainting when all visible area are dirty.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Image-based widgets showing is too slow in Qt 4.2.1

    Its right but not for total widget repainting when all visible area are dirty.
    Yes, but at least you can get faster updates for smaller dirty areas.

    Regards

  3. #3
    Join Date
    Aug 2007
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Image-based widgets showing is too slow in Qt 4.2.1

    Quote Originally Posted by marcel View Post
    Yes, but at least you can get faster updates for smaller dirty areas.
    I agree with you, but in this case application will be shown over any window (for touchscreen purposes).

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Image-based widgets showing is too slow in Qt 4.2.1

    Quote Originally Posted by mkrentovskiy View Post
    I agree with you, but in this case application will be shown over any window (for touchscreen purposes).
    That doesn't mean anything. If you have a widget that contains a button and you push that button, the parent widget will probably receive a paint event as well for the rectangle that contains the push button. So partial paint events may still occur.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.