int main(int argc, char *argv[])
{
// QCoreApplication::setAttribute(Qt::AA_EnableHighDp iScaling);
QGuiApplication app(argc, argv);
// For OpenGL rendering
QQuickWindow::setGraphicsApi(QSGRendererInterface: :OpenGL);
// Register OpenGL rendering QQuickItem
qmlRegisterType<OpenGLItem>("com.OpenGLItem", 1, 0, "OpenGLItem");
// Register Object receiving function calls from QML to C++
qmlRegisterType<Tab1Panel>("com.tab1panel", 1, 0, "Tab1Panel");
QQmlApplicationEngine engine;
const QUrl url(u"qrc:/Slicer3D/Main.qml"_qs);
QObject::connect(
&engine,
&QQmlApplicationEngine:
bjectCreationFailed,
&app,
[]() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.load(url);
Bookmarks