#4718 Qt5 : Use grab() instead of grabWidget()

This commit is contained in:
Magne Sjaastad
2019-09-13 15:13:49 +02:00
parent 9f47c35bce
commit 29cb7cd8dc
6 changed files with 7 additions and 6 deletions

View File

@@ -604,7 +604,7 @@ QImage RimFlowCharacteristicsPlot::snapshotWindowContent()
if ( m_flowCharPlotWidget )
{
QPixmap pix = QPixmap::grabWidget( m_flowCharPlotWidget );
QPixmap pix = m_flowCharPlotWidget->grab();
image = pix.toImage();
}