Skip to content

Commit 7905935

Browse files
committed
Remove touch-event related warnings in console on the animated QtChart
1 parent b40bdde commit 7905935

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openstudio_lib/GroundTemperatureMonthlyInspectorView.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ SiteGroundTemperatureMonthlyWidget::SiteGroundTemperatureMonthlyWidget(bool isIP
199199

200200
auto* chartView = new QChartView(chart);
201201
chartView->setRenderHint(QPainter::Antialiasing);
202+
// Suppress spurious "no target window" touch-event warnings on macOS (Qt 6 / QChartView bug)
203+
chartView->viewport()->setAttribute(Qt::WA_AcceptTouchEvents, false);
202204
chartView->setMinimumHeight(220);
203205
chartView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
204206
mainLayout->addWidget(chartView, 1);

0 commit comments

Comments
 (0)