IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QVirtualKeyboardDictionary Class

An application-defined dictionary for virtual keyboard input methods.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QVirtualKeyboardDictionary Class

  • Header: QVirtualKeyboardDictionary

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)

    target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)

  • qmake: QT += virtualkeyboard

  • Inherits: QObject

  • Group: QVirtualKeyboardDictionary is part of qtvirtualkeyboard-cpp-for-apps

Detailed Description

This class defines a named dictionary that consists of words or phrases. The dictionary can be enabled in the desired context and its usage depends on the current input method of the virtual keyboard.

Property Documentation

 

contents : QStringList

contents of the dictionary.

This property holds the contents of the dictionary. Typically, the content consists of words or phrases. Note that the dictionary is language neutral, meaning it is the application's responsibility to localize the dictionary if it contains language-dependent data.

The content can be set at any time, although it makes sense to set it when the input method is not active.

Access functions:

  • contents() const

  • void setContents(const &contents)

  • void resetContents()

Notifier signal:

  • void contentsChanged()

[read-only] name : const QString

name of the dictionary.

This property holds the name of the dictionary that was specified when the dictionary was created. The name is necessary when referring to a specific dictionary (for example when you activate it in the input context).

The dictionary name cannot be changed later.

Access functions:

  • name() const

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+