1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Remove the items fromthe scene before setting the scene rect to 0-size

Qt 6.7 draws the message item over the tab bar when it is present when shrinking
the scene rect. Clear all the items when clearing the scene as a workaround.
This commit is contained in:
Martin Tůma 2024-05-28 23:37:25 +02:00
parent 3d01424f44
commit 6ce0b03295

View File

@ -442,6 +442,15 @@ void GraphView::clear()
_sliderPos = 0;
_zoom = 1.0;
removeItem(_xAxis);
removeItem(_yAxis);
removeItem(_xAxisLabel);
removeItem(_yAxisLabel);
removeItem(_slider);
removeItem(_info);
removeItem(_grid);
removeItem(_message);
_scene->setSceneRect(0, 0, 0, 0);
}