Window

Creates a new top-level window More...

Window instantiates the C++ class QQuickWindow

Properties

Detailed Description

The Window object creates a new top-level window for a QtQuick scene. It automatically sets up the window for use with QtQuick 2.0 graphical types.

To use this type, you will need to import the module with the following line:

import QtQuick.Window 2.0

Restricting this import will allow you to have a QML environment without access to window system features.

Property Documentation

color : color

The background color for the window.

Setting this property is more efficient than using a separate Rectangle.


modality : string

The modality of the window.

A modal window prevents other windows from receiving input events. Possible values are Qt.NonModal (the default), Qt.WindowModal, and Qt.ApplicationModal.


title : string

The window's title in the windowing system.

The window title might appear in the title area of the window decorations, depending on the windowing system and the window flags. It might also be used by the windowing system to identify the window in other contexts, such as in the task switcher.