Results 1 to 5 of 5

Thread: Turn off backing store

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Turn off backing store

    I am helping to develop an OpenGl plotting system with ToddAtWSU. The plotting system works well, except when another window covers the plot, however briefly. When covered and uncovered, the drawing slows down to a halt and hangs the system. Someone I work with mentioned a "backing store" and trying to disable it. Looking through the forums, there is mention that "...I think backing store can be disabled" but not concrete yes/no. Is this possible in Qt4.1.4+? If so, how do you do it? We are interested in if this solves our problem in the drawing.


    Mucho Thanks in advance

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

    Default Re: Turn off backing store

    AFAIK OpenGL backend doesn't use a backing store.

  3. #3
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Turn off backing store

    Quote Originally Posted by wysota View Post
    AFAIK OpenGL backend doesn't use a backing store.
    Does anything in Qt other than QPainter use a backing store? For instance, the QWidgets that make up the UI? The slowdown only occurs when another window (print dialog, open dialog etc) covers up any portion of the plot.

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

    Default Re: Turn off backing store

    QPainter is only an interface. It is QPaintDevice/QPaintEngine that is or is not backstore enabled (at least I think so).

    Try to see if default Qt examples that use OpenGL experience simmilar slowdowns. If not, then the problem is probably in your code.

  5. The following user says thank you to wysota for this useful post:

    Rayven (7th February 2007)

  6. #5
    Join Date
    Aug 2006
    Posts
    44
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Turn off backing store

    AFAIK, only QPainters targeted to a QWidget* use the backing store. On Mac and MSWin, you can't disable this, despite the somewhat contradictory documentation. (Some places say you can, some say you can't.) I believe in X, you can disable the backing store.

    *But, as others have mentioned, GL does not use the backing store, even if it's a 'widget'.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.