QVirtualKeyboardSelectionListModel Class

List model for selection lists. More...

Header: #include <QVirtualKeyboardSelectionListModel>
qmake: QT += virtualkeyboard
Instantiated By: SelectionListModel
Inherits: QAbstractListModel

Public Types

enum class DictionaryType { Default, User }
enum class Role { Display, DisplayRole, WordCompletionLength, WordCompletionLengthRole, Dictionary, CanRemoveSuggestion }
enum class Type { WordCandidateList }

Detailed Description

This class acts as a bridge between the UI and the input method that provides the data for selection lists.

Member Type Documentation

enum class QVirtualKeyboardSelectionListModel::DictionaryType

This enum specifies the dictionary type of a word.

ConstantValueDescription
QVirtualKeyboardSelectionListModel::DictionaryType::Default0The word candidate is from the default dictionary.
QVirtualKeyboardSelectionListModel::DictionaryType::User1The word candidate is from the user dictionary.

enum class QVirtualKeyboardSelectionListModel::Role

This enum specifies a role of the data requested.

ConstantValueDescription
QVirtualKeyboardSelectionListModel::Role::DisplayQt::DisplayRoleThe data to be rendered in form of text.
QVirtualKeyboardSelectionListModel::Role::DisplayRoleDisplayobsolete Use Role::Display.
QVirtualKeyboardSelectionListModel::Role::WordCompletionLengthQt::UserRole + 1An integer specifying the length of the word the completion part expressed as the number of characters counted from the end of the string.
QVirtualKeyboardSelectionListModel::Role::WordCompletionLengthRoleWordCompletionLengthobsolete Use Role::WordCompletionLength.
QVirtualKeyboardSelectionListModel::Role::Dictionary258An integer specifying l {QVirtualKeyboardSelectionListModel::DictionaryType}{dictionary type}.
QVirtualKeyboardSelectionListModel::Role::CanRemoveSuggestion259A boolean value indicating if the word candidate can be removed from the dictionary.

enum class QVirtualKeyboardSelectionListModel::Type

This enum specifies the type of selection list.

ConstantValueDescription
QVirtualKeyboardSelectionListModel::Type::WordCandidateList0Shows list of word candidates.