taurus taurus

Previous topic

taurus.qt.qtgui.container

Next topic

TaurusBaseContainer

This Page

QGroupWidget

Inheritance diagram of QGroupWidget

class QGroupWidget(parent=None, designMode=False)

Bases: PyQt4.QtGui.QWidget

An expandable/collapsible composite widget

DefaultContentStyle = {'stop_color': 'rgb(255, 255, 255)', 'border_color': 'rgb(0, 85, 227)', 'border_radius': '4px', 'start_color': 'rgb(224, 224, 224)'}
DefaultContentVisible = True
DefaultTitleBarHeight = 16
DefaultTitleBarStyle = {'font_color': 'white', 'stop_color': 'rgb(0, 65, 200)', 'border_radius': '4px', 'start_color': 'rgb(60, 150, 255)'}
DefaultTitleBarVisible = True
collapseButton()

Returns the collapse button widget

Return type::class:~`Qt.QToolButton`
Returns:the collapse button widget
content()

Returns the contents widget

Return type::class:~`Qt.QFrame`
Returns:the content widget
contentVisible

This property contains the widget’s content’s visibility

Access functions:

getContentStyle()

Returns this widget’s content style

Return type::class:~`dict`
Returns:this widget’s content style
classmethod getQtDesignerPluginInfo()
getTitle()

Returns this widget’s title

Return type::class:~`str`
Returns:this widget’s title
getTitleHeight()

Returns this widget’s title height

Return type::class:~`bool`
Returns:this widget’s title height
getTitleIcon()

Returns this widget’s title icon

Return type::class:~`Qt.QIcon`
Returns:this widget’s title icon
getTitleStyle()

Returns this widget’s title style

Return type::class:~`dict`
Returns:this widget’s title style
isContentVisible()

Returns this widget’s contents visibility

Return type::class:~`bool`
Returns:this widget’s contents visibility
isTitleVisible()

Returns this widget’s title visibility

Return type::class:~`bool`
Returns:this widget’s title visibility
resetContentStyle()

Resets this widget’s content style

resetContentVisible()

Resets this widget’s contents visibility

resetTitleHeight()

Resets this widget’s title height

resetTitleStyle()

Resets this widget’s title style

resetTitleVisible()

Resets this widget’s title visibility

setContentStyle(style_map)

Sets this widget’s content style Used key/values for style_map: - ‘start_color’ : brush (Ex.: ‘#E0E0E0’, ‘rgb(0,0,0)’, ‘white’) - ‘stop_color’ : brush (Ex.: ‘#E0E0E0’, ‘rgb(0,0,0)’, ‘white’)

Parameters:style_map (:class:~`dict`) – the new widget content style
setContentVisible(show)

Sets this widget’s contents visibility

Parameters:show (:class:~`bool`) – the new widget contents visibility
setTitle(title)

Sets this widget’s title

Parameters:title (:class:~`str`) – the new widget title
setTitleHeight(h)

Sets this widget’s title height

Parameters:icon (:class:~`bool`) – the new widget title height
setTitleIcon(icon)

Sets this widget’s title icon

Parameters:icon (:class:~`Qt.QIcon`) – the new widget title icon
setTitleStyle(style_map)

Sets this widget’s title style Used key/values for style_map: - ‘start_color’ : brush (Ex.: ‘#E0E0E0’, ‘rgb(0,0,0)’, ‘white’) - ‘stop_color’ : brush (Ex.: ‘#E0E0E0’, ‘rgb(0,0,0)’, ‘white’) - ‘font_color’ : brush (Ex.: ‘#E0E0E0’, ‘rgb(0,0,0)’, ‘white’) - ‘border_radius’: radius (Ex.: ‘5px’, ‘5px,2px’)

Parameters:style_map (:class:~`dict`) – the new widget title style
setTitleVisible(show)

Sets this widget’s title visibility

Parameters:icon (:class:~`bool`) – the new widget title visibility
switchContentVisible()

Switches this widget’s contents visibility

title

This property contains the widget’s title

Access functions:

titleBar()

Returns the title bar widget

Return type::class:~`Qt.QFrame`
Returns:the title bar widget
titleButton()

Returns the title button widget

Return type::class:~`Qt.QToolButton`
Returns:the title button widget
titleHeight

This property contains the widget’s title height

Access functions:

titleIcon

This property contains the widget’s title icon

Access functions:

titleVisible

This property contains the widget’s title visibility

Access functions: