Completer
Qt Base Class: QCompleter
Signature: QCompleter(self, completions: Sequence[str], parent: Optional[PySide6.QtCore.QObject] = None) -> None
QCompleter(self, model: PySide6.QtCore.QAbstractItemModel, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QCompleter(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QCompleter PySide6.QtWidgets QCompleter(self, completions: Sequence[str], parent: Optional[PySide6.QtCore.QObject] \= None) -> None |
Subclasses
Class | Module | Description |
---|---|---|
SubsequenceCompleter | prettyqt.custom_widgets.subsequencecompleter |
⋔ Inheritance diagram
graph TD
1473296325184["widgets.Completer"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473293754608["QtWidgets.QCompleter"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473296325184
140713234304496 --> 1473299815024
1473293754608 --> 1473296325184
1473288842240 --> 1473293754608
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QCompleter
Completions based on an item model.
Source code in prettyqt\widgets\completer.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
get_completion_mode() -> CompletionModeStr
get_filter_mode() -> constants.FilterModeStr
get_sort_mode() -> SortModeStr
is_case_sensitive() -> bool
set_case_sensitive(state: bool)
Set case sensitivity.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
bool
|
case sensitive |
required |
Source code in prettyqt\widgets\completer.py
set_completion_mode(mode: CompletionModeStr | widgets.QCompleter.CompletionMode)
Set completion mode to use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
CompletionModeStr | CompletionMode
|
completion mode to use |
required |
set_filter_mode(mode: constants.FilterModeStr | constants.MatchFlag)
Set filter mode to use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
FilterModeStr | MatchFlag
|
filter mode to use |
required |
set_sort_mode(mode: SortModeStr | widgets.QCompleter.ModelSorting | None)
Set sort mode to use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
SortModeStr | ModelSorting | None
|
sort mode to use |
required |
Source code in prettyqt\widgets\completer.py
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
completionPrefix |
QString | |
modelSorting |
QCompleter::ModelSorting | |
filterMode |
QFlags |
|
completionMode |
QCompleter::CompletionMode | |
completionColumn |
int | |
completionRole |
int | |
maxVisibleItems |
int | |
caseSensitivity |
Qt::CaseSensitivity | |
wrapAround |
bool |