DynamicPanels Example
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setOrganizationName(QStringLiteral("Developer Machines"));
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
app.setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
#endif
#if OLD_GLWidget
app.setAttribute(Qt::AA_NativeWindows);
#endif
QSurfaceFormat fmt;
fmt.setSamples(4);
QSurfaceFormat::setDefaultFormat(fmt);
MainWindow window;
window.show();
return app.exec();
}