diff options
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,10 +20,14 @@ int main( qmlRegisterType<QmlCustomPlot>("QmlCustomPlot", 1, 0, "QmlCustomPlot"); auto pixelsPlot = new QCustomPlot(); +#ifdef QCUSTOMPLOT_USE_OPENGL pixelsPlot->setOpenGl(true); +#endif auto profilePlot = new QCustomPlot(); +#ifdef QCUSTOMPLOT_USE_OPENGL profilePlot->setOpenGl(true); +#endif engine.rootContext()->setContextProperty("pixelsPlot", pixelsPlot); engine.rootContext()->setContextProperty("profilePlot", profilePlot); |
