20 Q_PROPERTY(
bool deleteOnClose READ deleteOnClose
21 WRITE setDeleteOnClose NOTIFY deleteOnCloseChanged FINAL )
23 Q_PROPERTY(
bool autoLayoutChildren READ autoLayoutChildren
24 WRITE setAutoLayoutChildren NOTIFY autoLayoutChildrenChanged FINAL )
26 Q_PROPERTY( QLocale locale READ locale
27 WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL )
29 using Inherited = QQuickWindow;
35 EventPropagationStopped = 1
39 QskWindow( QQuickRenderControl* renderControl, QWindow* parent =
nullptr );
43 using Inherited::setScreen;
44 void setScreen(
const QString& );
46 bool deleteOnClose()
const;
47 void setDeleteOnClose(
bool );
49 void setAutoLayoutChildren(
bool );
50 bool autoLayoutChildren()
const;
52 Q_INVOKABLE
void addItem( QQuickItem* );
54 QLocale locale()
const;
57 Q_INVOKABLE
void setPreferredSize(
const QSize& );
58 Q_INVOKABLE QSize preferredSize()
const;
60 Q_INVOKABLE QSize sizeConstraint()
const;
62 Q_INVOKABLE
void setFixedSize(
const QSize& );
66 void setCustomRenderMode(
const char* mode );
67 const char* customRenderMode()
const;
70 void setEventAcceptance( EventAcceptance );
71 EventAcceptance eventAcceptance()
const;
75 void setSkin(
const QString& );
79 void localeChanged(
const QLocale& );
80 void autoLayoutChildrenChanged();
81 void deleteOnCloseChanged();
84 void setLocale(
const QLocale& );
85 void resizeF(
const QSizeF& );
88 bool event( QEvent* )
override;
89 void resizeEvent( QResizeEvent* )
override;
90 void exposeEvent( QExposeEvent* )
override;
91 void keyPressEvent( QKeyEvent* )
override;
92 void keyReleaseEvent( QKeyEvent* )
override;
94 virtual void layoutItems();
95 virtual void ensureFocus( Qt::FocusReason );