This class is a extension of QApplication which contains support for BPS virtual keyboards. More...
#include <bpsapplication.h>
Public Slots | |
| void | emitHideKeyboardRequest () |
| Emit hideKeyboardRequest. | |
| void | sendEnterKey () |
| Send a enter key keyboard stroke to the widget currently having focus. | |
| void | showAlphaKeyboard (QWidget *aWidget, bool aShow) |
| Show or hide the alphanumeric keyboard for the given widget, whenever the top window of that widget is active. | |
| void | showContextMenu () |
| Send a keyboard stroke to open the context menu for the widget currently having focus. | |
| void | showNumericKeyboard (QWidget *aWidget, bool aShow) |
| Show or hide the numeric keyboard for the given widget, whenever the top window of that widget is active. | |
Signals | |
| void | hideKeyboardRequest (QWidget *aWidget) |
| Signal emitted when the virtual keyboard hide button is hit. | |
Public Member Functions | |
| BpsApplication (int &argc, char **argv) | |
| The one and only constructor. | |
Static Public Member Functions | |
| static QWidget * | keyboardTarget () |
| Find the current receiver widget for keyboard input. | |
This class is a extension of QApplication which contains support for BPS virtual keyboards.
Use this class in place of QApplication when you create a standalone application that shall make use of the virtual keyboard.
| BpsApplication::BpsApplication | ( | int & | argc, |
| char ** | argv | ||
| ) |
The one and only constructor.
| [in] | argc | The number of arguments received from the command line. |
| [in] | argv | List of the arguments, terminated by a 0 element. |
| void BpsApplication::hideKeyboardRequest | ( | QWidget * | aWidget | ) | [signal] |
Signal emitted when the virtual keyboard hide button is hit.
| [in] | aWidget | The active widget. |
| static QWidget* BpsApplication::keyboardTarget | ( | ) | [static] |
Find the current receiver widget for keyboard input.
This method extends fucusWidget() by support for keyboardGrabber and popup windows. It will also return 0 if there is in fact a focus widget, but that one is disabled.
| void BpsApplication::showAlphaKeyboard | ( | QWidget * | aWidget, |
| bool | aShow | ||
| ) | [slot] |
Show or hide the alphanumeric keyboard for the given widget, whenever the top window of that widget is active.
| [in] | aWidget | The widget to show/hide the alphanumeric keyboard for. |
| [in] | aShow | True to show, false to hide. |
| void BpsApplication::showNumericKeyboard | ( | QWidget * | aWidget, |
| bool | aShow | ||
| ) | [slot] |
Show or hide the numeric keyboard for the given widget, whenever the top window of that widget is active.
| [in] | aWidget | The widget to show/hide the numeric keyboard for. |
| [in] | aShow | True to show, false to hide. |