Hi all,
To avoid flickering I used this way :
{
return NULL;
}
QPaintEngine* IRenderWidget::paintEngine() const
{
return NULL;
}
To copy to clipboard, switch view to plain text mode
Here my constructor :
IRenderWidget
::IRenderWidget( QWidget* Parent
) :m_Initialized( false ),
m_RenderWindow( NULL )
{
// Initialize the widget.
setMinimumSize( 320, 240 );
setAttribute( Qt::WA_PaintOnScreen );
setAttribute( Qt::WA_OpaquePaintEvent );
setAttribute( Qt::WA_NoSystemBackground );
setFocusPolicy( Qt::StrongFocus );
setMouseTracking( true );
// Set the timer interval.
m_Timer.setInterval( 10 );
}
IRenderWidget::IRenderWidget( QWidget* Parent ) :
QWidget( Parent ),
m_Initialized( false ),
m_RenderWindow( NULL )
{
// Initialize the widget.
setMinimumSize( 320, 240 );
setAttribute( Qt::WA_PaintOnScreen );
setAttribute( Qt::WA_OpaquePaintEvent );
setAttribute( Qt::WA_NoSystemBackground );
setFocusPolicy( Qt::StrongFocus );
setMouseTracking( true );
// Set the timer interval.
m_Timer.setInterval( 10 );
}
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
Bookmarks