File: view.cpp

package info (click to toggle)
cutefish-core 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,076 kB
  • sloc: cpp: 11,327; xml: 443; sh: 29; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "view.h"

#include <QApplication>
#include <QQmlContext>

View::View(QQuickView *parent)
    : QQuickView(parent)
{
    rootContext()->setContextProperty("View", this);

    setFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
    // setResizeMode(QQuickView::SizeViewToRootObject);
    setSource(QUrl("qrc:/qml/main.qml"));
    setScreen(qApp->primaryScreen());
    setColor(Qt::transparent);
}