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
|
|
|
|
*/
|
|
|
|
|
2022-08-27 04:32:48 +08:00
|
|
|
#include "jkqtpexampleapplication.h"
|
2020-09-12 05:22:04 +08:00
|
|
|
#include <QApplication>
|
|
|
|
#include <cmath>
|
|
|
|
#include "mandelbrotmainwindow.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2022-04-16 05:01:09 +08:00
|
|
|
|
2022-08-27 04:32:48 +08:00
|
|
|
JKQTPAppSettingController highDPIController(argc, argv);
|
2022-08-29 04:48:14 +08:00
|
|
|
JKQTPExampleApplication app(argc, argv, true);
|
2022-04-16 05:01:09 +08:00
|
|
|
|
2020-09-12 05:22:04 +08:00
|
|
|
MandelbrotMainWindow widMain;
|
2022-08-29 04:48:14 +08:00
|
|
|
widMain.connect(&widMain, SIGNAL(readyForScreenshot()), &app, SLOT(notifyReadyForScreenshot()));
|
2020-09-12 05:22:04 +08:00
|
|
|
|
|
|
|
widMain.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|