##// END OF EJS Templates
Add Qt::AA_EnableHighDpiScaling and QCP::phFastPolylines
perrinel -
r1374:c2f8a1a0873b
parent child
Show More
@@ -109,6 +109,8 SqpApplication::SqpApplication(int &argc, char **argv)
109 109 {
110 110 qCDebug(LOG_SqpApplication()) << tr("SqpApplication construction") << QThread::currentThread();
111 111
112 QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
113
112 114 connect(&impl->m_DataSourceControllerThread, &QThread::started,
113 115 impl->m_DataSourceController.get(), &DataSourceController::initialize);
114 116 connect(&impl->m_DataSourceControllerThread, &QThread::finished,
@@ -258,9 +258,8 VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget
258 258 connect(&sqpApp->variableController(), &VariableController::updateVarDisplaying, this,
259 259 &VisualizationGraphWidget::onUpdateVarDisplaying);
260 260
261 #ifdef Q_OS_MAC
261 // Necessary for all platform since Qt::AA_EnableHighDpiScaling is enable.
262 262 plot().setPlottingHint(QCP::phFastPolylines, true);
263 #endif
264 263 }
265 264
266 265
General Comments 0
You need to be logged in to leave comments. Login now