SARibbon 2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonMainWindow类 参考

#include <SARibbonMainWindow.h>

类 SARibbonMainWindow 继承关系图:

class  PrivateData
 The SARibbonMainWindowPrivate class
 

Public 成员函数

 SARibbonMainWindow (QWidget *parent=nullptr, SARibbonMainWindowStyles style=SARibbonMainWindowStyleFlag::UseRibbonMenuBar|SARibbonMainWindowStyleFlag::UseRibbonFrame, const Qt::WindowFlags flags=Qt::WindowFlags())
 Constructor for SARibbonMainWindow
 
 ~SARibbonMainWindow () override
 Destructor for SARibbonMainWindow
 
SARibbonBarribbonBar () const
 Return SARibbonBar
 
void setRibbonBar (SARibbonBar *ribbon)
 Set ribbonbar
 
SAFramelessHelperframelessHelper () const
 Return SAFramelessHelper
 
void setRubberBandOnResize (bool on)
 Set to use rubber band indication instead of immediate scaling during resizing, which is more friendly for software with large rendering (such as CAD, 3D)
 
bool isRubberBandOnResize () const
 Check if rubber band is used on resize
 
void updateWindowFlag (Qt::WindowFlags flags)
 This function is only used to control the display of minimize, maximize and close buttons
 
void setRibbonTheme (SARibbonTheme theme)
 
SARibbonTheme ribbonTheme () const
 Get ribbon theme
 
bool isUseRibbon () const
 Determine whether the current mode is ribbon mode
 
SARibbonSystemButtonBarwindowButtonBar () const
 Get the bar where the maximize, minimize, and close buttons are located. You can set content next to the maximize and minimize buttons through this function
 
SARibbonMainWindowStyles ribbonMainwindowStyle () const
 Get the current mainwindow style
 
virtual bool eventFilter (QObject *obj, QEvent *e) Q_DECL_OVERRIDE
 Pass ribbonbar events to frameless
 

Protected 成员函数

SARibbonBarcreateRibbonBar ()
 Factory function to create ribbonbar
 

属性

SARibbonTheme ribbonTheme
 

友元

class SARibbonBar
 

详细描述

构造及析构函数说明

◆ SARibbonMainWindow()

SARibbonMainWindow::SARibbonMainWindow ( QWidget *  parent = nullptr,
SARibbonMainWindowStyles  style = SARibbonMainWindowStyleFlag::UseRibbonMenuBar | SARibbonMainWindowStyleFlag::UseRibbonFrame,
const Qt::WindowFlags  flags = Qt::WindowFlags() 
)
explicit

Constructor for SARibbonMainWindow

◆ ~SARibbonMainWindow()

SARibbonMainWindow::~SARibbonMainWindow ( )
override

Destructor for SARibbonMainWindow

成员函数说明

◆ createRibbonBar()

SARibbonBar * SARibbonMainWindow::createRibbonBar ( )
protected

Factory function to create ribbonbar

◆ eventFilter()

bool SARibbonMainWindow::eventFilter ( QObject *  obj,
QEvent *  e 
)
virtual

Pass ribbonbar events to frameless

◆ framelessHelper()

SAFramelessHelper * SARibbonMainWindow::framelessHelper ( ) const

◆ isRubberBandOnResize()

bool SARibbonMainWindow::isRubberBandOnResize ( ) const

Check if rubber band is used on resize

◆ isUseRibbon()

bool SARibbonMainWindow::isUseRibbon ( ) const

Determine whether the current mode is ribbon mode

◆ ribbonBar()

SARibbonBar * SARibbonMainWindow::ribbonBar ( ) const

Return SARibbonBar

◆ ribbonMainwindowStyle()

SARibbonMainWindowStyles SARibbonMainWindow::ribbonMainwindowStyle ( ) const

Get the current mainwindow style

◆ ribbonTheme()

SARibbonTheme SARibbonMainWindow::ribbonTheme ( ) const

Get ribbon theme

◆ setRibbonBar()

void SARibbonMainWindow::setRibbonBar ( SARibbonBar ribbon)

Set ribbonbar

◆ setRibbonTheme()

void SARibbonMainWindow::setRibbonTheme ( SARibbonTheme  theme)

Note: Setting the theme in the constructor will not take full effect, use QTimer to put it at the end of the queue to execute QTimer::singleShot(0, this, [ this ]() { this->setRibbonTheme(SARibbonMainWindow::RibbonThemeDark); });

◆ setRubberBandOnResize()

void SARibbonMainWindow::setRubberBandOnResize ( bool  on)

Set to use rubber band indication instead of immediate scaling during resizing, which is more friendly for software with large rendering (such as CAD, 3D)

◆ updateWindowFlag()

void SARibbonMainWindow::updateWindowFlag ( Qt::WindowFlags  flags)

This function is only used to control the display of minimize, maximize and close buttons

◆ windowButtonBar()

SARibbonSystemButtonBar * SARibbonMainWindow::windowButtonBar ( ) const

Get the bar where the maximize, minimize, and close buttons are located. You can set content next to the maximize and minimize buttons through this function


该类的文档由以下文件生成: