Commit 21d99613 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(main_window): Hello World

parent 097d1415
QT += core gui quick widgets
TARGET = linphone
TEMPLATE = app
SOURCES += \
src/main.cpp \
src/views/main_window.cpp
HEADERS += \
src/views/main_window.h
RESOURCES += \
resources.qrc
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">
<file>ui/main_window.qml</file>
</qresource>
</RCC>
#include <cstdlib>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main (int argc, char *argv[]) {
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine(QUrl("qrc:/ui/main_window.qml"));
if (engine.rootObjects().isEmpty())
exit(EXIT_FAILURE);
exit(app.exec());
}
#include "main_window.h"
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#endif // MAIN_WINDOW
import QtQuick 2.5
import QtQuick.Window 2.2
Window {
visible: true
width: 800
height: 600
Text {
anchors.centerIn: parent
text: "Hello World!"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment