diff --git a/ApplicationCode/Commands/RicGridStatisticsDialog.cpp b/ApplicationCode/Commands/RicGridStatisticsDialog.cpp index 82522b1740..991369747f 100644 --- a/ApplicationCode/Commands/RicGridStatisticsDialog.cpp +++ b/ApplicationCode/Commands/RicGridStatisticsDialog.cpp @@ -126,7 +126,8 @@ void RicGridStatisticsDialog::updateFromRimView( RimGridView* rimView ) //-------------------------------------------------------------------------------------------------- QImage RicGridStatisticsDialog::screenShotImage() { - QPixmap shot = QPixmap::grabWidget( m_mainViewWidget, m_mainViewWidget->rect() ); + QPixmap shot = m_mainViewWidget->grab(); + return shot.toImage(); } diff --git a/ApplicationCode/ProjectDataModel/Flow/RimFlowCharacteristicsPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimFlowCharacteristicsPlot.cpp index 415d4448c0..e8faedd7e1 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimFlowCharacteristicsPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimFlowCharacteristicsPlot.cpp @@ -604,7 +604,7 @@ QImage RimFlowCharacteristicsPlot::snapshotWindowContent() if ( m_flowCharPlotWidget ) { - QPixmap pix = QPixmap::grabWidget( m_flowCharPlotWidget ); + QPixmap pix = m_flowCharPlotWidget->grab(); image = pix.toImage(); } diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp index a3b03cf4ed..7d41e07e0f 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp @@ -782,7 +782,7 @@ QImage RimWellAllocationPlot::snapshotWindowContent() if ( m_wellAllocationPlotWidget ) { - QPixmap pix = QPixmap::grabWidget( m_wellAllocationPlotWidget ); + QPixmap pix = m_wellAllocationPlotWidget->grab(); image = pix.toImage(); } diff --git a/ApplicationCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlot.cpp b/ApplicationCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlot.cpp index 9c1f398469..193d60464a 100644 --- a/ApplicationCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlot.cpp +++ b/ApplicationCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlot.cpp @@ -151,7 +151,7 @@ QImage RimGridCrossPlot::snapshotWindowContent() if ( m_qwtPlot ) { - QPixmap pix = QPixmap::grabWidget( m_qwtPlot ); + QPixmap pix = m_qwtPlot->grab(); image = pix.toImage(); } diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp index 43a4e2ba19..1b1bd34e3c 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.cpp @@ -284,7 +284,7 @@ QImage RimWellLogPlot::snapshotWindowContent() if ( m_viewer ) { - QPixmap pix = QPixmap::grabWidget( m_viewer ); + QPixmap pix = m_viewer->grab(); image = pix.toImage(); } diff --git a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp index 76fcc4fc0e..e3328327d0 100644 --- a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp @@ -1321,7 +1321,7 @@ QImage RimSummaryPlot::snapshotWindowContent() if ( m_qwtPlot ) { - QPixmap pix = QPixmap::grabWidget( m_qwtPlot ); + QPixmap pix = m_qwtPlot->grab(); image = pix.toImage(); }