- qtgui
- qtdbus
- qtwidgets
- qtcore
- dtkcore
- qsettingbackend_zh
- dobject_zh
- abstractappender_zh
- abstractstringappender_zh
- dfilewatcher_zh
- outputdebugappender_zh
- dsettingsbackend_zh
- drecentmanager_zh
- ddesktopentry_zh
- consoleappender_zh
- gsettingsbackend_zh
- dsettingsgroup_zh
- dlogmanager_zh
- fileappender_zh
- dsettings_zh
- dfilesystemwatcher_zh
- dfilewatchermanager_zh
- dbasefilewatcher_zh
- dtkgui
- dtkwidget
- dviewitemaction_zh
- dstandarditem_zh
- dfiledialog_zh
- dclipeffectwidget_zh
- danchors_zh
- dgraphicsclipeffect_zh
- dstyle_zh
- dcoloredprogressbar_zh
- dbuttonboxbutton_zh
- dlabel_zh
- dtiplabel_zh
- darrowlinedrawer_zh
- daboutdialog_zh
- dsettingswidgetfactory_zh
- dsearchcombobox_zh
- dcrumbedit_zh
- dcommandlinkbutton_zh
- dsettingsdialog_zh
- dwindowoptionbutton_zh
- dspinner_zh
- dsimplelistview_zh
- dwaterprogress_zh
- dmainwindow_zh
- dhidpihelper_zh
- dslider_zh
- dpasswordedit_zh
- danchorinfo_zh
- dmpriscontrol_zh
- darrowbutton_zh
- dbackgroundgroup_zh
- dcircleprogress_zh
- dwarningbutton_zh
- dwindowclosebutton_zh
- dvideowidget_zh
- dfilechooseredit_zh
- dblureffectwidget_zh
- darrowrectangle_zh
- dsearchedit_zh
- dfloatingmessage_zh
- dswitchlineexpand_zh
- dtabbar_zh
- dlineedit_zh
- danchorsbase_zh
- dstylediconengine_zh
- dwindowmaxbutton_zh
- dpageindicator_zh
- dsuggestbutton_zh
- dapplicationsettings_zh
- dtooltip_zh
- dwindowminbutton_zh
- ddrawer_zh
- dtitlebar_zh
- dsimplelistitem_zh
- dpicturesequenceview_zh
dmainwindow_zh
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
int Q_PROPERTY(int )
DMainWindow::titlebar
DTitlebar * titlebar() const
DMainWindow::titlebar Returns a DTitlebar instance used by the main window.
DMainWindow::isDXcbWindow
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
int windowRadius() const
DMainWindow::borderWidth
int borderWidth() const See also setBorderWidth()
DMainWindow::borderColor
int borderColor() const See also setBorderColor()
DMainWindow::shadowRadius
int shadowRadius() const See also setShadowRadius()
DMainWindow::shadowOffset
int shadowOffset() const See also setShadowOffset()
DMainWindow::shadowColor
int shadowColor() const See also setShadowColor()
DMainWindow::clipPath
int clipPath() const See also setClipPath()
DMainWindow::frameMask
int frameMask() const See also setFrameMask()
DMainWindow::frameMargins
int frameMargins() const
DMainWindow::translucentBackground
bool translucentBackground() const See also setTranslucentBackground()
DMainWindow::enableSystemResize
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
bool enableSystemMove() const See also setEnableSystemMove()
DMainWindow::enableBlurWindow
bool enableBlurWindow() const See also setEnableBlurWindow()
DMainWindow::autoInputMaskByClipPath
bool autoInputMaskByClipPath() const See also setAutoInputMaskByClipPath()
DMainWindow::titlebarShadowIsEnabled
bool titlebarShadowIsEnabled() const
DMainWindow::titlebarShadowIsEnabled Returns true titleBar阴影开启 false 阴影关闭
DMainWindow::setBorderWidth
void setBorderWidth(int borderWidth)
设定边框的宽度 borderWidth 边框的宽度
DMainWindow::setBorderColor
void setBorderColor(const int &borderColor)
设定边框的颜色 borderColor 边框的颜色
DMainWindow::setShadowRadius
void setShadowRadius(int shadowRadius)
设定阴影区域的圆角 shadowRadius 阴影区域圆角大小
DMainWindow::setShadowOffset
void setShadowOffset(const int &shadowOffset)
设定阴影区域的偏移距离 shadowOffset 阴影区域的偏移距离
DMainWindow::setShadowColor
void setShadowColor(const int &shadowColor)
设定阴影的颜色 shadowColor 阴影的颜色
DMainWindow::setClipPath
void setClipPath(const int &clipPath)
设定裁剪路径 clipPath 裁剪的路径
DMainWindow::setFrameMask
void setFrameMask(const int &frameMask)
设定边框的mask区域 frameMask mask区域
DMainWindow::setTranslucentBackground
void setTranslucentBackground(bool translucentBackground)
设定时候擦除背景 translucentBackground true擦除背景 false不擦除背景
DMainWindow::setEnableSystemResize
void setEnableSystemResize(bool enableSystemResize)
设定是否允许系统调整窗口大小 enableSystemResize true允许系统调整 false不允许系统调整
DMainWindow::setEnableSystemMove
void setEnableSystemMove(bool enableSystemMove)
设定时候允许系统移动窗口 enableSystemMove true允许移动 false不允许移动
DMainWindow::setEnableBlurWindow
void setEnableBlurWindow(bool enableBlurWindow)
设定时候能伸缩窗口 enableBlurWindow true能伸缩 false不能伸缩
DMainWindow::setAutoInputMaskByClipPath
void setAutoInputMaskByClipPath(bool autoInputMaskByClipPath)
通过裁剪区域自动设定mask autoInputMaskByClipPath true自动设定 false不自动设定
DMainWindow::sendMessage
void sendMessage(const int &icon, const QString &message)
发送消息 icon 消息展示图标 message 消息内容
DMainWindow::sendMessage
void sendMessage(int *message)
DMainWindow::sendMessage 发送消息 message DFloatingMessage 消息
DMainWindow::setTitlebarShadowEnabled
void setTitlebarShadowEnabled(bool titlebarShadowEnabled)
设定titleBar是否有阴影区域 titlebarShadowEnabled true titleBar有阴影 false无阴影
DMainWindow::borderWidthChanged
void borderWidthChanged()
DMainWindow::borderColorChanged
void borderColorChanged()
DMainWindow::shadowRadiusChanged
void shadowRadiusChanged()
DMainWindow::shadowOffsetChanged
void shadowOffsetChanged()
DMainWindow::shadowColorChanged
void shadowColorChanged()
DMainWindow::clipPathChanged
void clipPathChanged()
DMainWindow::frameMaskChanged
void frameMaskChanged()
DMainWindow::frameMarginsChanged
void frameMarginsChanged()
DMainWindow::translucentBackgroundChanged
void translucentBackgroundChanged()
DMainWindow::enableSystemResizeChanged
void enableSystemResizeChanged()
DMainWindow::enableSystemMoveChanged
void enableSystemMoveChanged()
DMainWindow::enableBlurWindowChanged
void enableBlurWindowChanged()
DMainWindow::autoInputMaskByClipPathChanged
void autoInputMaskByClipPathChanged()
DMainWindow::DMainWindow
DMainWindow(DMainWindowPrivate &dd, int *parent)
DMainWindow::mouseMoveEvent
void mouseMoveEvent(int *event) override
DMainWindow::resizeEvent
void resizeEvent(int *event) override
DMainWindow::changeEvent
void changeEvent(int *event) override