2020-09-12 05:22:04 +08:00
|
|
|
/** \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[])
|
|
|
|
{
|
2022-04-16 05:01:09 +08:00
|
|
|
|
|
|
|
#if QT_VERSION >= 0x050600
|
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
|
|
#endif
|
2020-09-12 05:22:04 +08:00
|
|
|
QApplication app(argc, argv);
|
2022-04-16 05:01:09 +08:00
|
|
|
|
2020-09-12 05:22:04 +08:00
|
|
|
MandelbrotMainWindow widMain;
|
|
|
|
|
|
|
|
widMain.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|