QskSubWindow

Inherits from QskPopup

Inherited by QskDialogSubWindow

Public Types

  Name
enum Decoration { NoDecoration = 0, TitleBar = 1 « 0, Title = 1 « 1, Symbol = 1 « 2}

Public Signals

  Name
void decorationsChanged(Decorations )
void windowTitleChanged()
void windowTitleTextOptionsChanged()
void windowIconChanged()
void windowIconSourceChanged()

Public Functions

  Name
  QskSubWindow(QQuickItem * parent =nullptr)
  ~QskSubWindow() override
void setDecorations(Decorations decorations)
void resetDecorations()
Decorations decorations() const
void setDecoration(Decoration decoration, bool on =true)
bool hasDecoration(Decoration decoration) const
void setWindowTitleTextOptions(const QskTextOptions & options)
QskTextOptions windowTitleTextOptions() const
void setWindowTitle(const QString & title)
QString windowTitle() const
void setWindowIconSource(const QString & url)
void setWindowIconSource(const QUrl & url)
QUrl windowIconSource() const
void setWindowIcon(const QskGraphic & graphic)
QskGraphic windowIcon() const
bool hasWindowIcon() const
QRectF titleBarRect() const
QRectF layoutRectForSize(const QSizeF & size) const override

Protected Functions

  Name
bool event(QEvent * event) override
void updateLayout() override
QSizeF layoutSizeHint(Qt::SizeHint which, const QSizeF & constraint) const override
void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData & value) override

Public Properties

  Name
Decorations decorations
QString windowTitle
QskTextOptions windowTitleTextOptions
QUrl windowIconSource
QskGraphic windowIcon

Public Attributes

  Name
const QskAspect::Subcontrol Panel
const QskAspect::Subcontrol TitleBarPanel
const QskAspect::Subcontrol TitleBarSymbol
const QskAspect::Subcontrol TitleBarText

Public Types Documentation

enum Decoration

Enumerator Value Description
NoDecoration 0  
TitleBar 1 « 0  
Title 1 « 1  
Symbol 1 « 2  

Public Signals Documentation

signal decorationsChanged

void decorationsChanged(
    Decorations 
)

signal windowTitleChanged

void windowTitleChanged()

signal windowTitleTextOptionsChanged

void windowTitleTextOptionsChanged()

signal windowIconChanged

void windowIconChanged()

signal windowIconSourceChanged

void windowIconSourceChanged()

Public Functions Documentation

function QskSubWindow

QskSubWindow(
    QQuickItem * parent =nullptr
)

function ~QskSubWindow

~QskSubWindow() override

function setDecorations

void setDecorations(
    Decorations decorations
)

function resetDecorations

void resetDecorations()

function decorations

Decorations decorations() const

function setDecoration

void setDecoration(
    Decoration decoration,
    bool on =true
)

function hasDecoration

bool hasDecoration(
    Decoration decoration
) const

function setWindowTitleTextOptions

void setWindowTitleTextOptions(
    const QskTextOptions & options
)

function windowTitleTextOptions

QskTextOptions windowTitleTextOptions() const

function setWindowTitle

void setWindowTitle(
    const QString & title
)

function windowTitle

QString windowTitle() const

function setWindowIconSource

void setWindowIconSource(
    const QString & url
)

function setWindowIconSource

void setWindowIconSource(
    const QUrl & url
)

function windowIconSource

QUrl windowIconSource() const

function setWindowIcon

void setWindowIcon(
    const QskGraphic & graphic
)

function windowIcon

QskGraphic windowIcon() const

function hasWindowIcon

bool hasWindowIcon() const

function titleBarRect

QRectF titleBarRect() const

function layoutRectForSize

QRectF layoutRectForSize(
    const QSizeF & size
) const override

Protected Functions Documentation

function event

bool event(
    QEvent * event
) override

function updateLayout

void updateLayout() override

function layoutSizeHint

QSizeF layoutSizeHint(
    Qt::SizeHint which,
    const QSizeF & constraint
) const override

function itemChange

void itemChange(
    QQuickItem::ItemChange change,
    const QQuickItem::ItemChangeData & value
) override

Public Property Documentation

property decorations

Decorations decorations;

property windowTitle

QString windowTitle;

property windowTitleTextOptions

QskTextOptions windowTitleTextOptions;

property windowIconSource

QUrl windowIconSource;

property windowIcon

QskGraphic windowIcon;

Public Attributes Documentation

variable Panel

static const QskAspect::Subcontrol Panel;

variable TitleBarPanel

static const QskAspect::Subcontrol TitleBarPanel;

variable TitleBarSymbol

static const QskAspect::Subcontrol TitleBarSymbol;

variable TitleBarText

static const QskAspect::Subcontrol TitleBarText;

Updated on 28 July 2023 at 14:02:27 CEST