Subgroup: other
Class: QgsCheckableComboBox¶
-
class
qgis.gui.
QgsCheckableComboBox
¶ Bases:
PyQt5.QtWidgets.QComboBox
QComboBox subclass which allows selecting multiple items.
New in version 3.0.
Methods
acceptDrops
accessibleDescription
accessibleName
actionEvent
actions
activateWindow
addAction
addActions
addItem
addItem(self, QIcon, str, userData: Any = None) addItems
adjustSize
autoFillBackground
backgroundRole
baseSize
blockSignals
changeEvent
checkedItems
Returns currently checked items. childAt
childAt(self, int, int) -> QWidget childEvent
children
childrenRect
childrenRegion
clear
clearEditText
clearFocus
clearMask
close
closeEvent
colorCount
completer
connectNotify
contentsMargins
contentsRect
contextMenuEvent
contextMenuPolicy
count
create
createWindowContainer
currentData
currentIndex
currentText
cursor
customEvent
defaultText
Returns default text which will be displayed in the widget when no items selected. deleteLater
depth
deselectAllOptions
Removes selection from all items. destroy
devType
devicePixelRatio
devicePixelRatioF
devicePixelRatioFScale
disconnect
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
dumpObjectInfo
dumpObjectTree
duplicatesEnabled
dynamicPropertyNames
effectiveWinId
ensurePolished
enterEvent
event
eventFilter
Filters events to enable context menu find
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findData
findText
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPolicy
focusPreviousChild
focusProxy
focusWidget
font
fontInfo
fontMetrics
foregroundRole
frameGeometry
frameSize
geometry
getContentsMargins
grab
grabGesture
grabKeyboard
grabMouse
grabMouse(self, Union[QCursor, Qt.CursorShape]) grabShortcut
graphicsEffect
graphicsProxyWidget
hasFocus
hasFrame
hasHeightForWidth
hasMouseTracking
hasTabletTracking
height
heightForWidth
heightMM
hide
hideEvent
hidePopup
Hides the list of items in the combobox if it is currently visible and resets the internal state. iconSize
inherits
initPainter
initStyleOption
inputMethodEvent
inputMethodHints
inputMethodQuery
inputMethodQuery(self, Qt.InputMethodQuery, Any) -> Any insertAction
insertActions
insertItem
insertItem(self, int, QIcon, str, userData: Any = None) insertItems
insertPolicy
insertSeparator
installEventFilter
isActiveWindow
isAncestorOf
isEditable
isEnabled
isEnabledTo
isFullScreen
isHidden
isLeftToRight
isMaximized
isMinimized
isModal
isRightToLeft
isSignalConnected
isVisible
isVisibleTo
isWidgetType
isWindow
isWindowModified
isWindowType
itemCheckState
Returns the checked state of the item identified by index itemData
itemDelegate
itemIcon
itemText
keyPressEvent
keyReleaseEvent
keyboardGrabber
killTimer
layout
layoutDirection
leaveEvent
lineEdit
locale
logicalDpiX
logicalDpiY
lower
mapFrom
mapFromGlobal
mapFromParent
mapTo
mapToGlobal
mapToParent
mask
maxCount
maxVisibleItems
maximumHeight
maximumSize
maximumWidth
metaObject
metric
minimumContentsLength
minimumHeight
minimumSize
minimumSizeHint
minimumWidth
model
modelColumn
mouseDoubleClickEvent
mouseGrabber
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
move
move(self, int, int) moveEvent
moveToThread
nativeEvent
nativeParentWidget
nextInFocusChain
normalGeometry
objectName
overrideWindowFlags
overrideWindowState
paintEngine
paintEvent
paintingActive
palette
parent
parentWidget
physicalDpiX
physicalDpiY
pos
previousInFocusChain
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. raise_
receivers
rect
releaseKeyboard
releaseMouse
releaseShortcut
removeAction
removeEventFilter
removeItem
render
render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren)) repaint
repaint(self, int, int, int, int) resize
resize(self, int, int) resizeEvent
Handler for widget resizing restoreGeometry
rootModelIndex
saveGeometry
scroll
scroll(self, int, int, QRect) selectAllOptions
Selects all items. sender
senderSignalIndex
separator
Returns separator used to separate items in the display text. setAcceptDrops
setAccessibleDescription
setAccessibleName
setAttribute
setAutoFillBackground
setBackgroundRole
setBaseSize
setBaseSize(self, QSize) setCheckedItems
Set items which should be checked/selected. setCompleter
setContentsMargins
setContentsMargins(self, QMargins) setContextMenuPolicy
setCurrentIndex
setCurrentText
setCursor
setDefaultText
Set default text which will be displayed in the widget when no items selected. setDisabled
setDuplicatesEnabled
setEditText
setEditable
setEnabled
setFixedHeight
setFixedSize
setFixedSize(self, int, int) setFixedWidth
setFocus
setFocus(self, Qt.FocusReason) setFocusPolicy
setFocusProxy
setFont
setForegroundRole
setFrame
setGeometry
setGeometry(self, int, int, int, int) setGraphicsEffect
setHidden
setIconSize
setInputMethodHints
setInsertPolicy
setItemCheckState
Sets the item check state to state setItemData
setItemDelegate
setItemIcon
setItemText
setLayout
setLayoutDirection
setLineEdit
setLocale
setMask
setMask(self, QRegion) setMaxCount
setMaxVisibleItems
setMaximumHeight
setMaximumSize
setMaximumSize(self, QSize) setMaximumWidth
setMinimumContentsLength
setMinimumHeight
setMinimumSize
setMinimumSize(self, QSize) setMinimumWidth
setModel
setModelColumn
setMouseTracking
setObjectName
setPalette
setParent
setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType]) setProperty
setRootModelIndex
setSeparator
Set separator used to separate items in the display text. setShortcutAutoRepeat
setShortcutEnabled
setSizeAdjustPolicy
setSizeIncrement
setSizeIncrement(self, QSize) setSizePolicy
setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy) setStatusTip
setStyle
setStyleSheet
setTabOrder
setTabletTracking
setToolTip
setToolTipDuration
setUpdatesEnabled
setValidator
setView
setVisible
setWhatsThis
setWindowFilePath
setWindowFlag
setWindowFlags
setWindowIcon
setWindowIconText
setWindowModality
setWindowModified
setWindowOpacity
setWindowRole
setWindowState
setWindowTitle
sharedPainter
show
showContextMenu
Display context menu which allows selecting/deselecting all items at once. showEvent
showFullScreen
showMaximized
showMinimized
showNormal
showPopup
signalsBlocked
size
sizeAdjustPolicy
sizeHint
sizeIncrement
sizePolicy
stackUnder
startTimer
statusTip
style
styleSheet
tabletEvent
testAttribute
thread
timerEvent
toggleItemCheckState
Toggles the item check state toolTip
toolTipDuration
tr
underMouse
ungrabGesture
unsetCursor
unsetLayoutDirection
unsetLocale
update
update(self, QRect) updateGeometry
updateMicroFocus
updatesEnabled
validator
view
visibleRegion
whatsThis
wheelEvent
width
widthMM
winId
window
windowFilePath
windowFlags
windowHandle
windowIcon
windowIconText
windowModality
windowOpacity
windowRole
windowState
windowTitle
windowType
x
y
Attributes
AdjustToContents
AdjustToContentsOnFirstShow
AdjustToMinimumContentsLength
AdjustToMinimumContentsLengthWithIcon
DrawChildren
DrawWindowBackground
IgnoreMask
InsertAfterCurrent
InsertAlphabetically
InsertAtBottom
InsertAtCurrent
InsertAtTop
InsertBeforeCurrent
NoInsert
PdmDepth
PdmDevicePixelRatio
PdmDevicePixelRatioScaled
PdmDpiX
PdmDpiY
PdmHeight
PdmHeightMM
PdmNumColors
PdmPhysicalDpiX
PdmPhysicalDpiY
PdmWidth
PdmWidthMM
activated
activated(self, int) [signal] checkedItemsChanged
This signal is emitted whenever the checked items list changed. currentIndexChanged
currentIndexChanged(self, int) [signal] currentTextChanged
currentTextChanged(self, str) [signal] customContextMenuRequested
customContextMenuRequested(self, QPoint) [signal] destroyed
destroyed(self, QObject = None) [signal] editTextChanged
editTextChanged(self, str) [signal] highlighted
highlighted(self, int) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
windowIconChanged
windowIconChanged(self, QIcon) [signal] windowIconTextChanged
windowIconTextChanged(self, str) [signal] windowTitleChanged
windowTitleChanged(self, str) [signal]
-
actionEvent
()¶
-
changeEvent
()¶
-
checkedItems
(self) → List[str]¶ Returns currently checked items.
See also
-
checkedItemsChanged
¶ This signal is emitted whenever the checked items list changed. [signal]
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
defaultText
(self) → str¶ Returns default text which will be displayed in the widget when no items selected.
See also
-
deselectAllOptions
(self)¶ Removes selection from all items.
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
eventFilter
(self, object: QObject, event: QEvent) → bool¶ Filters events to enable context menu
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
hidePopup
(self)¶ Hides the list of items in the combobox if it is currently visible and resets the internal state.
-
initPainter
()¶
-
initStyleOption
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
itemCheckState
(self, index: int) → Qt.CheckState¶ Returns the checked state of the item identified by index
Parameters: index – item index See also
See also
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
resizeEvent
(self, event: QResizeEvent)¶ Handler for widget resizing
-
selectAllOptions
(self)¶ Selects all items.
-
sender
()¶
-
senderSignalIndex
()¶
-
separator
(self) → str¶ Returns separator used to separate items in the display text.
See also
-
setCheckedItems
(self, items: Iterable[str])¶ Set items which should be checked/selected.
Parameters: items – items to select See also
-
setDefaultText
(self, text: str)¶ Set default text which will be displayed in the widget when no items selected.
Parameters: text – default text See also
-
setItemCheckState
(self, index: int, state: Qt.CheckState)¶ Sets the item check state to state
Parameters: - index – item index
- state – check state
See also
See also
-
setSeparator
(self, separator: str)¶ Set separator used to separate items in the display text.
Parameters: separator – separator to use See also
-
showContextMenu
(self, pos: QPoint)¶ Display context menu which allows selecting/deselecting all items at once.
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
toggleItemCheckState
(self, index: int)¶ Toggles the item check state
Parameters: index – item index See also
See also
-
updateMicroFocus
()¶
-
wheelEvent
()¶