Documents > BPS V2 C++ API

This class is a extension of QApplication which contains support for BPS virtual keyboards. More...

#include <bpsapplication.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

BpsApplication::BpsApplication ( int &  argc,
char **  argv 
)

The one and only constructor.

Parameters:
[in]argcThe number of arguments received from the command line.
[in]argvList of the arguments, terminated by a 0 element.

Member Function Documentation

void BpsApplication::hideKeyboardRequest ( QWidget *  aWidget) [signal]

Signal emitted when the virtual keyboard hide button is hit.

Parameters:
[in]aWidgetThe 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.

Returns:
The widget having keyboard focus, or 0 if no such widget.
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.

Parameters:
[in]aWidgetThe widget to show/hide the alphanumeric keyboard for.
[in]aShowTrue 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.

Parameters:
[in]aWidgetThe widget to show/hide the numeric keyboard for.
[in]aShowTrue to show, false to hide.

The documentation for this class was generated from the following file: