@@ -109,6 +109,8 SqpApplication::SqpApplication(int &argc, char **argv) | |||||
109 | { |
|
109 | { | |
110 | qCDebug(LOG_SqpApplication()) << tr("SqpApplication construction") << QThread::currentThread(); |
|
110 | qCDebug(LOG_SqpApplication()) << tr("SqpApplication construction") << QThread::currentThread(); | |
111 |
|
111 | |||
|
112 | QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); | |||
|
113 | ||||
112 | connect(&impl->m_DataSourceControllerThread, &QThread::started, |
|
114 | connect(&impl->m_DataSourceControllerThread, &QThread::started, | |
113 | impl->m_DataSourceController.get(), &DataSourceController::initialize); |
|
115 | impl->m_DataSourceController.get(), &DataSourceController::initialize); | |
114 | connect(&impl->m_DataSourceControllerThread, &QThread::finished, |
|
116 | connect(&impl->m_DataSourceControllerThread, &QThread::finished, |
@@ -258,9 +258,8 VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget | |||||
258 | connect(&sqpApp->variableController(), &VariableController::updateVarDisplaying, this, |
|
258 | connect(&sqpApp->variableController(), &VariableController::updateVarDisplaying, this, | |
259 | &VisualizationGraphWidget::onUpdateVarDisplaying); |
|
259 | &VisualizationGraphWidget::onUpdateVarDisplaying); | |
260 |
|
260 | |||
261 | #ifdef Q_OS_MAC |
|
261 | // Necessary for all platform since Qt::AA_EnableHighDpiScaling is enable. | |
262 | plot().setPlottingHint(QCP::phFastPolylines, true); |
|
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