chore: spike on qt widgets and ui files
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include "src/MainWindow.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@@ -6,6 +7,13 @@ int main(int argc, char *argv[])
|
||||
qDebug() << "hello world";
|
||||
QApplication a(argc, argv);
|
||||
|
||||
// Load reMarkable e-ink stylesheet
|
||||
QFile styleFile(":/styles/remarkable.qss");
|
||||
if (styleFile.open(QFile::ReadOnly | QFile::Text)) {
|
||||
a.setStyleSheet(styleFile.readAll());
|
||||
styleFile.close();
|
||||
}
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
|
||||
Reference in New Issue
Block a user