dmainwindow_zh
2022-04-14 15:57:47

Class::DMainWindow

暂无该属性


Detailed Description

The DMainWindow class provides a main application window. A main window provides a framework for building an application's user interface. DMainWindow has its own layout compared to QMainWindow, it has only title bar and content area, simpler and cleaner.

Developers can provide customized title bar and content to make the application rich functional.

DMainWindow::Q_PROPERTY

[private plain  ]

int Q_PROPERTY(int )

DMainWindow::titlebar

[private plain  ]

DTitlebar * titlebar() const

DMainWindow::titlebar Returns a DTitlebar instance used by the main window.

DMainWindow::isDXcbWindow

[private plain  ]

bool isDXcbWindow() const

DMainWindow::isDXcbWindow Returns Whether this window is dxcb backended. Many features like blurred background and window clipping are supported only if the window is using the dxcb Qt platform plugin.

DMainWindow::windowRadius

[private plain  ]

int windowRadius() const

DMainWindow::borderWidth

[private plain  ]

int borderWidth() const See also setBorderWidth()

DMainWindow::borderColor

[private plain  ]

int borderColor() const See also setBorderColor()

DMainWindow::shadowRadius

[private plain  ]

int shadowRadius() const See also setShadowRadius()

DMainWindow::shadowOffset

[private plain  ]

int shadowOffset() const See also setShadowOffset()

DMainWindow::shadowColor

[private plain  ]

int shadowColor() const See also setShadowColor()

DMainWindow::clipPath

[private plain  ]

int clipPath() const See also setClipPath()

DMainWindow::frameMask

[private plain  ]

int frameMask() const See also setFrameMask()

DMainWindow::frameMargins

[private plain  ]

int frameMargins() const

DMainWindow::translucentBackground

[private plain  ]

bool translucentBackground() const See also setTranslucentBackground()

DMainWindow::enableSystemResize

[private plain  ]

bool enableSystemResize() const

DMainWindow::enableSystemResize Returns This property holds whether the window can be resized by the user. The default value of this property is true.

You can set this property to false and implement the resize polizy of this window by you self.

See also setEnableSystemResize()

DMainWindow::enableSystemMove

[private plain  ]

bool enableSystemMove() const See also setEnableSystemMove()

DMainWindow::enableBlurWindow

[private plain  ]

bool enableBlurWindow() const See also setEnableBlurWindow()

DMainWindow::autoInputMaskByClipPath

[private plain  ]

bool autoInputMaskByClipPath() const See also setAutoInputMaskByClipPath()

DMainWindow::titlebarShadowIsEnabled

[private plain  ]

bool titlebarShadowIsEnabled() const

DMainWindow::titlebarShadowIsEnabled Returns true titleBar阴影开启 false 阴影关闭

DMainWindow::setBorderWidth

[public plain  ]

void setBorderWidth(int borderWidth)

设定边框的宽度 borderWidth 边框的宽度

DMainWindow::setBorderColor

[public plain  ]

void setBorderColor(const int &borderColor)

设定边框的颜色 borderColor 边框的颜色

DMainWindow::setShadowRadius

[public plain  ]

void setShadowRadius(int shadowRadius)

设定阴影区域的圆角 shadowRadius 阴影区域圆角大小

DMainWindow::setShadowOffset

[public plain  ]

void setShadowOffset(const int &shadowOffset)

设定阴影区域的偏移距离 shadowOffset 阴影区域的偏移距离

DMainWindow::setShadowColor

[public plain  ]

void setShadowColor(const int &shadowColor)

设定阴影的颜色 shadowColor 阴影的颜色

DMainWindow::setClipPath

[public plain  ]

void setClipPath(const int &clipPath)

设定裁剪路径 clipPath 裁剪的路径

DMainWindow::setFrameMask

[public plain  ]

void setFrameMask(const int &frameMask)

设定边框的mask区域 frameMask mask区域

DMainWindow::setTranslucentBackground

[public plain  ]

void setTranslucentBackground(bool translucentBackground)

设定时候擦除背景 translucentBackground true擦除背景 false不擦除背景

DMainWindow::setEnableSystemResize

[public plain  ]

void setEnableSystemResize(bool enableSystemResize)

设定是否允许系统调整窗口大小 enableSystemResize true允许系统调整 false不允许系统调整

DMainWindow::setEnableSystemMove

[public plain  ]

void setEnableSystemMove(bool enableSystemMove)

设定时候允许系统移动窗口 enableSystemMove true允许移动 false不允许移动

DMainWindow::setEnableBlurWindow

[public plain  ]

void setEnableBlurWindow(bool enableBlurWindow)

设定时候能伸缩窗口 enableBlurWindow true能伸缩 false不能伸缩

DMainWindow::setAutoInputMaskByClipPath

[public plain  ]

void setAutoInputMaskByClipPath(bool autoInputMaskByClipPath)

通过裁剪区域自动设定mask autoInputMaskByClipPath true自动设定 false不自动设定

DMainWindow::sendMessage

[public plain  ]

void sendMessage(const int &icon, const QString &message)

发送消息 icon 消息展示图标 message 消息内容

DMainWindow::sendMessage

[public plain  ]

void sendMessage(int *message)

DMainWindow::sendMessage 发送消息 message DFloatingMessage 消息

DMainWindow::setTitlebarShadowEnabled

[public plain  ]

void setTitlebarShadowEnabled(bool titlebarShadowEnabled)

设定titleBar是否有阴影区域 titlebarShadowEnabled true titleBar有阴影 false无阴影

DMainWindow::borderWidthChanged

[public plain  ]

void borderWidthChanged()

DMainWindow::borderColorChanged

[public plain  ]

void borderColorChanged()

DMainWindow::shadowRadiusChanged

[public plain  ]

void shadowRadiusChanged()

DMainWindow::shadowOffsetChanged

[public plain  ]

void shadowOffsetChanged()

DMainWindow::shadowColorChanged

[public plain  ]

void shadowColorChanged()

DMainWindow::clipPathChanged

[public plain  ]

void clipPathChanged()

DMainWindow::frameMaskChanged

[public plain  ]

void frameMaskChanged()

DMainWindow::frameMarginsChanged

[public plain  ]

void frameMarginsChanged()

DMainWindow::translucentBackgroundChanged

[public plain  ]

void translucentBackgroundChanged()

DMainWindow::enableSystemResizeChanged

[public plain  ]

void enableSystemResizeChanged()

DMainWindow::enableSystemMoveChanged

[public plain  ]

void enableSystemMoveChanged()

DMainWindow::enableBlurWindowChanged

[public plain  ]

void enableBlurWindowChanged()

DMainWindow::autoInputMaskByClipPathChanged

[public plain  ]

void autoInputMaskByClipPathChanged()

DMainWindow::DMainWindow

[protected constructor  ]

DMainWindow(DMainWindowPrivate &dd, int *parent)

DMainWindow::mouseMoveEvent

[protected plain  ]

void mouseMoveEvent(int *event) override

DMainWindow::resizeEvent

[protected plain  ]

void resizeEvent(int *event) override

DMainWindow::changeEvent

[protected plain  ]

void changeEvent(int *event) override