QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskWindow Class Reference

Detailed Description

Definition at line 16 of file QskWindow.h.

Inheritance diagram for QskWindow:

Public Types

enum  EventAcceptance { EventProcessed = 0 , EventPropagationStopped = 1 }
 

Properties

bool deleteOnClose
 
bool autoLayoutChildren
 
QLocale locale
 

Public Member Functions

 QskWindow (QWindow *parent=nullptr)
 
 QskWindow (QQuickRenderControl *renderControl, QWindow *parent=nullptr)
 
void setScreen (const QString &)
 
bool deleteOnClose () const
 
void setDeleteOnClose (bool)
 
void setAutoLayoutChildren (bool)
 
bool autoLayoutChildren () const
 
Q_INVOKABLE void addItem (QQuickItem *)
 
QLocale locale () const
 
void resetLocale ()
 
Q_INVOKABLE void setPreferredSize (const QSize &)
 
Q_INVOKABLE QSize preferredSize () const
 
Q_INVOKABLE QSize sizeConstraint () const
 
Q_INVOKABLE void setFixedSize (const QSize &)
 
void polishItems ()
 
void setCustomRenderMode (const char *mode)
 
const char * customRenderMode () const
 
void setEventAcceptance (EventAcceptance)
 
EventAcceptance eventAcceptance () const
 
void setSkin (QskSkin *)
 
void setSkin (const QString &)
 
QskSkinskin () const
 

Public Slots

void setLocale (const QLocale &)
 
void resizeF (const QSizeF &)
 

Signals

void localeChanged (const QLocale &)
 
void autoLayoutChildrenChanged ()
 
void deleteOnCloseChanged ()
 

Protected Member Functions

bool event (QEvent *) override
 
void resizeEvent (QResizeEvent *) override
 
void exposeEvent (QExposeEvent *) override
 
void keyPressEvent (QKeyEvent *) override
 
void keyReleaseEvent (QKeyEvent *) override
 
virtual void layoutItems ()
 
virtual void ensureFocus (Qt::FocusReason)
 

Member Enumeration Documentation

◆ EventAcceptance

enum QskWindow::EventAcceptance

Definition at line 32 of file QskWindow.h.

Constructor & Destructor Documentation

◆ QskWindow() [1/2]

QskWindow::QskWindow ( QWindow *  parent = nullptr)

Definition at line 170 of file QskWindow.cpp.

◆ QskWindow() [2/2]

QskWindow::QskWindow ( QQuickRenderControl *  renderControl,
QWindow *  parent = nullptr 
)

Definition at line 199 of file QskWindow.cpp.

◆ ~QskWindow()

QskWindow::~QskWindow ( )
override

Definition at line 208 of file QskWindow.cpp.

Member Function Documentation

◆ addItem()

void QskWindow::addItem ( QQuickItem *  item)

Definition at line 275 of file QskWindow.cpp.

◆ autoLayoutChildren()

bool QskWindow::autoLayoutChildren ( ) const

Definition at line 269 of file QskWindow.cpp.

◆ customRenderMode()

const char * QskWindow::customRenderMode ( ) const

Definition at line 652 of file QskWindow.cpp.

◆ deleteOnClose()

bool QskWindow::deleteOnClose ( ) const

Definition at line 238 of file QskWindow.cpp.

◆ ensureFocus()

void QskWindow::ensureFocus ( Qt::FocusReason  reason)
protectedvirtual

Definition at line 585 of file QskWindow.cpp.

◆ event()

bool QskWindow::event ( QEvent *  event)
overrideprotected

Definition at line 290 of file QskWindow.cpp.

◆ eventAcceptance()

QskWindow::EventAcceptance QskWindow::eventAcceptance ( ) const

Definition at line 677 of file QskWindow.cpp.

◆ exposeEvent()

void QskWindow::exposeEvent ( QExposeEvent *  event)
overrideprotected

Definition at line 417 of file QskWindow.cpp.

◆ keyPressEvent()

void QskWindow::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 382 of file QskWindow.cpp.

◆ keyReleaseEvent()

void QskWindow::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 412 of file QskWindow.cpp.

◆ layoutItems()

void QskWindow::layoutItems ( )
protectedvirtual

Definition at line 565 of file QskWindow.cpp.

◆ locale()

QLocale QskWindow::locale ( ) const

Definition at line 457 of file QskWindow.cpp.

◆ polishItems()

void QskWindow::polishItems ( )

Definition at line 284 of file QskWindow.cpp.

◆ preferredSize()

QSize QskWindow::preferredSize ( ) const

Definition at line 519 of file QskWindow.cpp.

◆ resetLocale()

void QskWindow::resetLocale ( )

Definition at line 477 of file QskWindow.cpp.

◆ resizeEvent()

void QskWindow::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 439 of file QskWindow.cpp.

◆ resizeF

void QskWindow::resizeF ( const QSizeF &  size)
slot

Definition at line 230 of file QskWindow.cpp.

◆ setAutoLayoutChildren()

void QskWindow::setAutoLayoutChildren ( bool  on)

Definition at line 255 of file QskWindow.cpp.

◆ setCustomRenderMode()

void QskWindow::setCustomRenderMode ( const char *  mode)

Definition at line 597 of file QskWindow.cpp.

◆ setDeleteOnClose()

void QskWindow::setDeleteOnClose ( bool  on)

Definition at line 244 of file QskWindow.cpp.

◆ setEventAcceptance()

void QskWindow::setEventAcceptance ( EventAcceptance  acceptance)

Definition at line 672 of file QskWindow.cpp.

◆ setFixedSize()

void QskWindow::setFixedSize ( const QSize &  size)

Definition at line 558 of file QskWindow.cpp.

◆ setLocale

void QskWindow::setLocale ( const QLocale &  locale)
slot

Definition at line 463 of file QskWindow.cpp.

◆ setPreferredSize()

void QskWindow::setPreferredSize ( const QSize &  size)

Definition at line 513 of file QskWindow.cpp.

◆ setScreen()

void QskWindow::setScreen ( const QString &  name)

Definition at line 212 of file QskWindow.cpp.

◆ setSkin() [1/2]

void QskWindow::setSkin ( const QString &  skinName)

Definition at line 682 of file QskWindow.cpp.

◆ setSkin() [2/2]

void QskWindow::setSkin ( QskSkin skin)

Definition at line 689 of file QskWindow.cpp.

◆ sizeConstraint()

QSize QskWindow::sizeConstraint ( ) const

Definition at line 525 of file QskWindow.cpp.

◆ skin()

QskSkin * QskWindow::skin ( ) const

Definition at line 708 of file QskWindow.cpp.

Property Documentation

◆ autoLayoutChildren

bool QskWindow::autoLayoutChildren
readwrite

Definition at line 23 of file QskWindow.h.

◆ deleteOnClose

bool QskWindow::deleteOnClose
readwrite

Definition at line 20 of file QskWindow.h.

◆ locale

QLocale QskWindow::locale
readwrite

Definition at line 26 of file QskWindow.h.