-
Common to all objects
All objects comes from a common guiobject. So all gui elements in DG3 can use all the settings listed here. What effect the settings have, depends on the underlying qt object. This settings simply set the values supported by all object, but not all object can use all settings. DG3 follows the Qt way of how the objects react on settings.
This are the settings you can use on all object
'disabled' ('setDisabled', bool) 'enabled' ('setEnabled', bool) 'hidden' ('setHidden', bool) 'css' ('setStyleSheet',), # make sure when you have a tuple to end it with "," or this won't be a tuple 'visible' ('setVisible', bool) 'windowmodified' ('setWindowModified', bool) 'title' ('setWindowTitle',) 'acceptdrops' ('setAcceptDrops', bool) 'accessibledescription' ('setAccessibleDescription') 'accessiblename' ('setAccessibleName',) 'autofillbackground' ('setAutoFillBackground', bool), #should be used with caution with style sheets 'basesize' ('setBaseSize', (int, int)) 'contentsmargins' ('setContentsMargins', (int, int, int, int)) 'editfocus' ('setEditFocus', bool) 'fixedheight' ('setFixedHeight', int) 'fixedsize' ('setFixedSize', (int, int)) 'fixedwidth' ('setFixedWidth', int) 'fixedpos' ('setGeometry', (int, int, int, int)) 'maxheight' ('setMaximumHeight', int) 'maxsize' ('setMaximumSize', (int, int)) 'maxwidth' ('setMaximumWidth', int) 'minheight' ('setMinimumHeight', int) 'minsize' ('setMinimumSize', (int, int)) 'minwidth' ('setMinimumWidth', int) 'mousetracking' ('setMouseTracking', bool) 'pos' ('move', (int, int)) 'sizeincrement' ('setSizeIncrement', (int, int)) 'statustip' ('setStatusTip',) 'tooltip' ('setToolTip',) 'parent' ('setParent', QWidget) 'updatesenabled' ('setUpdatesEnabled', bool) 'whatsthis' ('setWhatsThis',) 'windowfilepath' ('setWindowFilePath',) 'windowicontext' ('setWindowIconText',) 'windowrole' ('setWindowRole',) 'windowopacity' ('setWindowOpacity', float) 'focuspolicy' ('setFocusPolicy', Qt.FocusPolicy)
'strong-focus' : Qt.StrongFocus,
'tab-focus' : Qt.TabFocus,
'click-focus' : Qt.ClickFocus,
'no-focus' : Qt.NoFocus'contextmenupolicy' ('setContextMenuPolicy', Qt.ContextMenuPolicy)
'no-menu' : Qt.NoContextMenu,
'prevent-menu' : Qt.PreventContextMenu,
'default' : Qt.DefaultContextMenu,
'actions' : Qt.ActionsContextMenu,
'custom' : Qt.CustomContextMenu'cssname' ('setObjectName',), # sets the object name 'dragable' Set if element can be part of a drag and drop. Default is False. 'dragenter' The action to call when you have a drag enter event. 'dragmove' The action to call when you have a drag move event. 'dragdrop' The action to call when you have a drag drop event. 'mouseleftclick' The action to call when you have a mouse left click event. 'autofill' If set to True, all extra space should be filled with this element. If added with a tuple or list, the parameters is (horizontal, vertical) policy and the values from 0-255 the stretch factor. 'sizepolicy' The policy to use on the element. Use a dict with any of these values set to a valid value. 'heightforwidth' - True or False 'widthforheight' - True or False 'horizontalpolicy' - 0-255 'verticalpolicy' - 0-255 'horizontalstretch' - 0-255 'verticalstretch' - 0-255 'prekey' A dict with actions to do on a key value before the default action is done. A own document gives the values and examples. Return True to swallow the key. 'postkey' A dict with actions to do on a key value after the default action is donw. A own document gives the values and examples. Examples of use will be found in the other element definitions. This is simply all common setting.