WIP Quick GUI work
This commit is contained in:
parent
6a3b95a4b1
commit
3a7d3c807e
12 changed files with 223 additions and 60 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include <QGuiApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
|
||||
#include "backend/nvhttp.h"
|
||||
#include "gui/computermodel.h"
|
||||
|
||||
// Don't let SDL hook our main function, since Qt is already
|
||||
// doing the same thing
|
||||
|
|
@ -26,6 +26,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
// Register our C++ types for QML
|
||||
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
|
||||
|
||||
// Load the main.qml file
|
||||
QQmlApplicationEngine engine;
|
||||
engine.load(QUrl(QStringLiteral("qrc:/gui/main.qml")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue