PythonQt.QtGui.QCompleter · declarations 002
Back to PythonQt.QtGui.QCompleter
setModelSorting
setModelSorting(sorting: Any) -> None
X.setModelSorting(sorting)
Upstream PySide2 reference signatures (binding differences may apply):
setModelSorting(self, sorting: PySide2.QtWidgets.QCompleter.ModelSorting) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#setModelSorting
setPopup
setPopup(popup: Any) -> None
X.setPopup(popup)
Supplemental documentation: Qt 5 reference:
void QCompleter::setPopup(QAbstractItemView *popup)
Sets the popup used to display completions to popup. QCompleter takes ownership of the view.
A QListView is automatically created when the completionMode() is set to QCompleter::PopupCompletion or QCompleter::UnfilteredPopupCompletion. The default popup displays the completionColumn().
Ensure that this function is called before the view settings are modified. This is required since view's properties may require that a model has been set on the view (for example, hiding columns in the view requires a model to be set on the view).
See also popup().
Upstream PySide2 reference signatures (binding differences may apply):
setPopup(self, popup: PySide2.QtWidgets.QAbstractItemView) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#setPopup
setWidget
setWidget(widget: Any) -> None
X.setWidget(widget)
Supplemental documentation: Qt 5 reference:
void QCompleter::setWidget(QWidget *widget)
Sets the widget for which completion are provided for to widget. This function is automatically called when a QCompleter is set on a QLineEdit using QLineEdit::setCompleter() or on a QComboBox using QComboBox::setCompleter(). The widget needs to be set explicitly when providing completions for custom widgets.
See also widget(), setModel(), and setPopup().
Upstream PySide2 reference signatures (binding differences may apply):
setWidget(self, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#setWidget
setWrapAround
setWrapAround(wrap: bool) -> None
X.setWrapAround(wrap)
Upstream PySide2 reference signatures (binding differences may apply):
setWrapAround(self, wrap: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#setWrapAround
splitPath
splitPath(path: str) -> tuple
X.splitPath(path) -> tuple
Supplemental documentation: Qt 5 reference:
[virtual] QStringList QCompleter::splitPath(const QString \&path) const
Splits the given path into strings that are used to match at each level in the model().
The default implementation of splitPath() splits a file system path based on QDir::separator() when the sourceModel() is a QFileSystemModel.
When used with list models, the first item in the returned list is used for matching.
See also pathFromIndex() and Handling Tree Models.
Upstream PySide2 reference signatures (binding differences may apply):
splitPath(self, path: str) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#splitPath
widget
widget() -> Any
X.widget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QCompleter::widget() const
Returns the widget for which the completer object is providing completions.
See also setWidget().
Upstream PySide2 reference signatures (binding differences may apply):
widget(self) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#widget
wrapAround
instance-attribute
wrapAround: bool
Qt 5 reference:
wrapAround : bool
This property holds the completions wrap around when navigating through items
The default is true.
This property was introduced in Qt 4.3.
Access functions:
| bool | wrapAround() const |
|---|---|
| void | setWrapAround(bool wrap) |
Source: https://doc.qt.io/archives/qt-5.15/qcompleter.html#wrapAround