mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-16 02:25:50 +08:00
29 lines
641 B
C++
29 lines
641 B
C++
/** \example mandelbrot.cpp
|
|
* Shows how to plot the Mandelbrot set with JKQTPlotter, also providing a zooming feature.
|
|
*
|
|
* \ref JKQTPlotterMandelbrot
|
|
*/
|
|
|
|
#include <QApplication>
|
|
#include <cmath>
|
|
#include "mandelbrotmainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
#endif
|
|
QApplication app(argc, argv);
|
|
|
|
MandelbrotMainWindow widMain;
|
|
|
|
widMain.show();
|
|
|
|
return app.exec();
|
|
}
|