Results 1 to 3 of 3

Thread: QtOgreFramework flickering with qt 4.5

  1. #1
    Join Date
    Jan 2007
    Location
    Rome
    Posts
    30
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QtOgreFramework flickering with qt 4.5

    Hi everybody !
    I'm trying to embed ogre inside a Qt widgets, to use Qt to display the GUI and ogre to visualize the 3D content.
    Currently exist an ogre addons called QtOgreFramework, which works well with 4.4 but has a huge flickering with 4.5.

    Anyone has solve this issue, or have similar issues ( i.e. rendering a "custom" window on a QWidget) ?
    I know that with 4.5 the backing store behaviour has been modified but I don't know how to use in a QWidget the "old behaviour" (maybe it is not possible and I need to find a workaround for that).

    Best,

    Angelo

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtOgreFramework flickering with qt 4.5

    In Qwt I also have heavy flickering with 4.5, when I'm doing layout relevant operations according to resize operations ( f.e. showing the size of the main window in a QLabel on the status bar ): the label is jumping to the top left position and back.

    I don't have the bug number here, but AFAIR this particular problem was scheduled to be fixed in 4.5.1.

    Uwe

  3. #3
    Join Date
    Jan 2007
    Location
    Rome
    Posts
    30
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QtOgreFramework flickering with qt 4.5

    I've just found a way to disable the backing store engine on the ogre rendering.

    You have to override QWidget :: paintEngine() returning 0 in OgreWidget.h :

    Qt Code:
    1. QPaintEngine *paintEngine() { return 0; }
    To copy to clipboard, switch view to plain text mode 

    In this manner, the backing store does not handle the widget painting and the flickering disappear.
    It is also seems that even the rendering performance has a big boost.

    Best,

    Angelo
    Last edited by Angelo Moriconi; 6th April 2009 at 16:18.

Similar Threads

  1. flickering x-scale
    By sun in forum Qwt
    Replies: 2
    Last Post: 1st October 2008, 07:57
  2. Image Viewer Example and Flickering
    By babu198649 in forum Newbie
    Replies: 0
    Last Post: 7th August 2008, 15:42
  3. QFileDialog flickering
    By invictus in forum Newbie
    Replies: 8
    Last Post: 17th April 2008, 09:47
  4. Replies: 8
    Last Post: 20th September 2007, 09:10
  5. how to avoid QCanvasText flickering (Qt336)
    By oob2 in forum Qt Programming
    Replies: 5
    Last Post: 5th September 2006, 19:25

Tags for this Thread

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.