Results 1 to 3 of 3

Thread: QT 5.3 PaintEngine problem

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QT 5.3 PaintEngine problem

    Hi all,
    To avoid flickering I used this way :
    Qt Code:
    1. QPaintEngine* IRenderWidget::paintEngine() const
    2. {
    3. return NULL;
    4. }
    To copy to clipboard, switch view to plain text mode 
    Here my constructor :
    Qt Code:
    1. IRenderWidget::IRenderWidget( QWidget* Parent ) :
    2. QWidget( Parent ),
    3. m_Initialized( false ),
    4. m_RenderWindow( NULL )
    5. {
    6. // Initialize the widget.
    7. setMinimumSize( 320, 240 );
    8. setAttribute( Qt::WA_PaintOnScreen );
    9. setAttribute( Qt::WA_OpaquePaintEvent );
    10. setAttribute( Qt::WA_NoSystemBackground );
    11. setFocusPolicy( Qt::StrongFocus );
    12. setMouseTracking( true );
    13.  
    14. // Set the timer interval.
    15. m_Timer.setInterval( 10 );
    16. }
    To copy to clipboard, switch view to plain text mode 
    I moved to QT 5.3 RC and then no result and if I don't override I have result but the flickering is there.
    My widget is to link a 3D engine to a QWidget.
    Thanks for the help
    Last edited by Alundra; 13th May 2014 at 03:39.

  2. #2
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT 5.3 PaintEngine problem

    https://bugreports.qt-project.org/browse/QTBUG-38963
    I added that like a bug, hope a fix soon.

  3. #3
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT 5.3 PaintEngine problem

    hmm... I searched a lot and no real solution found, it's weird since QT 5.1 worked good.

Similar Threads

  1. Replies: 1
    Last Post: 9th April 2015, 14:53
  2. QWidget::paintEngine() should no longer be called
    By Greeny in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2007, 10:12

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.