CopperSpice API  1.9.1
QInputMethodQueryEvent Class Reference

The QInputMethodQueryEvent class provides an event sent by the input context to input objects. More...

Inheritance diagram for QInputMethodQueryEvent:
QEvent

Public Methods

 QInputMethodQueryEvent (Qt::InputMethodQueries queries)
 
Qt::InputMethodQueries queries () const
 
void setValue (Qt::InputMethodQuery query, const QVariant &value)
 
QVariant value (Qt::InputMethodQuery query) const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
 
- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

The QInputMethodQueryEvent class provides an event sent by the input context to input objects. It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions. The queries() method specifies which properties are queried.

The receiving object should call setValue() on the event to fill in the requested data before calling accept().

Constructor & Destructor Documentation

QInputMethodQueryEvent::QInputMethodQueryEvent ( Qt::InputMethodQueries  queries)
explicit

Constructs a query event for the properties given by queries.

Method Documentation

Qt::InputMethodQueries QInputMethodQueryEvent::queries ( ) const
inline

Returns the properties queried by the event.

void QInputMethodQueryEvent::setValue ( Qt::InputMethodQuery  query,
const QVariant value 
)

Sets the property query to value.

See also
value()
QVariant QInputMethodQueryEvent::value ( Qt::InputMethodQuery  query) const

Returns the value of the property query.

See also
setValue()