BPS C++ API  2.24.4
BpsApplication Class Reference

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

#include <bpsapplication.h>

+ Inheritance diagram for BpsApplication:

Public Slots

void emitHideKeyboardRequest ()
 Emit hideKeyboardRequest.
 
void sendAdjustColumns ()
 Send Ctrl and Numpad-Plus to adjust the columns of a table or tree widget currently having keyboard focus.
 
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. More...
 
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. More...
 

Signals

void hideKeyboardRequest (QWidget *aWidget)
 Signal emitted when the virtual keyboard hide button is hit. More...
 

Public Member Functions

 BpsApplication (int &argc, char **argv)
 The one and only constructor. More...
 
- Public Member Functions inherited from QApplication
bool autoSipEnabled () const const
 
void focusChanged (QWidget *old, QWidget *now)
 
virtual bool notify (QObject *receiver, QEvent *e) override
 
 qApp qApp
 
 QApplication (int &argc, char **argv)
 
void setAutoSipEnabled (const bool enabled)
 
void setStyleSheet (const QString &sheet)
 
QString styleSheet () const const
 
- Public Member Functions inherited from QGuiApplication
void applicationDisplayNameChanged ()
 
void applicationStateChanged (Qt::ApplicationState state)
 
void commitDataRequest (QSessionManager &manager)
 
qreal devicePixelRatio () const const
 
void focusObjectChanged (QObject *focusObject)
 
void focusWindowChanged (QWindow *focusWindow)
 
void fontChanged (const QFont &font)
 
void fontDatabaseChanged ()
 
bool isSavingSession () const const
 
bool isSessionRestored () const const
 
void lastWindowClosed ()
 
void layoutDirectionChanged (Qt::LayoutDirection direction)
 
void paletteChanged (const QPalette &palette)
 
void primaryScreenChanged (QScreen *screen)
 
 qGuiApp qGuiApp
 
 QGuiApplication (int &argc, char **argv)
 
void saveStateRequest (QSessionManager &manager)
 
void screenAdded (QScreen *screen)
 
void screenRemoved (QScreen *screen)
 
QString sessionId () const const
 
QString sessionKey () const const
 
- Public Member Functions inherited from QCoreApplication
void aboutToQuit ()
 
void applicationNameChanged ()
 
void applicationVersionChanged ()
 
void installNativeEventFilter (QAbstractNativeEventFilter *filterObj)
 
void organizationDomainChanged ()
 
void organizationNameChanged ()
 
 Q_COREAPP_STARTUP_FUNCTION (QtStartUpFunction ptr)
 
 Q_DECLARE_TR_FUNCTIONS (context)
 
void qAddPostRoutine (QtCleanUpFunction ptr)
 
 QCoreApplication (int &argc, char **argv)
 
void qRemovePostRoutine (QtCleanUpFunction ptr)
 
void removeNativeEventFilter (QAbstractNativeEventFilter *filterObject)
 
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
 QObject (QObject *parent)
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Static Public Member Functions

static QWidgetkeyboardTarget ()
 Find the current receiver widget for keyboard input. More...
 
- Static Public Member Functions inherited from QApplication
void aboutQt ()
 
QWidgetactiveModalWidget ()
 
QWidgetactivePopupWidget ()
 
QWidgetactiveWindow ()
 
void alert (QWidget *widget, int msec)
 
QWidgetList allWidgets ()
 
void beep ()
 
void closeAllWindows ()
 
int colorSpec ()
 
int cursorFlashTime ()
 
QDesktopWidgetdesktop ()
 
int doubleClickInterval ()
 
int exec ()
 
QWidgetfocusWidget ()
 
QFont font ()
 
QFont font (const char *className)
 
QFont font (const QWidget *widget)
 
QFontMetrics fontMetrics ()
 
QSize globalStrut ()
 
bool isEffectEnabled (Qt::UIEffect effect)
 
int keyboardInputInterval ()
 
bool keypadNavigationEnabled ()
 
Qt::NavigationMode navigationMode ()
 
QPalette palette (const char *className)
 
QPalette palette (const QWidget *widget)
 
void setActiveWindow (QWidget *active)
 
void setColorSpec (int spec)
 
void setCursorFlashTime (int)
 
void setDoubleClickInterval (int)
 
void setEffectEnabled (Qt::UIEffect effect, bool enable)
 
void setFont (const QFont &font, const char *className)
 
void setGlobalStrut (const QSize &)
 
void setKeyboardInputInterval (int)
 
void setKeypadNavigationEnabled (bool enable)
 
void setNavigationMode (Qt::NavigationMode mode)
 
void setPalette (const QPalette &palette, const char *className)
 
void setStartDragDistance (int l)
 
void setStartDragTime (int ms)
 
QStylesetStyle (const QString &style)
 
void setStyle (QStyle *style)
 
void setWheelScrollLines (int)
 
void setWindowIcon (const QIcon &icon)
 
int startDragDistance ()
 
int startDragTime ()
 
QStylestyle ()
 
QWidgettopLevelAt (const QPoint &point)
 
QWidgettopLevelAt (int x, int y)
 
QWidgetList topLevelWidgets ()
 
int wheelScrollLines ()
 
QWidgetwidgetAt (const QPoint &point)
 
QWidgetwidgetAt (int x, int y)
 
QIcon windowIcon ()
 
- Static Public Member Functions inherited from QGuiApplication
QWindowList allWindows ()
 
QString applicationDisplayName ()
 
Qt::ApplicationState applicationState ()
 
void changeOverrideCursor (const QCursor &cursor)
 
QClipboardclipboard ()
 
QString desktopFileName ()
 
bool desktopSettingsAware ()
 
int exec ()
 
QObjectfocusObject ()
 
QWindowfocusWindow ()
 
QFont font ()
 
Qt::HighDpiScaleFactorRoundingPolicy highDpiScaleFactorRoundingPolicy ()
 
QInputMethodinputMethod ()
 
bool isFallbackSessionManagementEnabled ()
 
bool isLeftToRight ()
 
bool isRightToLeft ()
 
Qt::KeyboardModifiers keyboardModifiers ()
 
Qt::LayoutDirection layoutDirection ()
 
QWindowmodalWindow ()
 
Qt::MouseButtons mouseButtons ()
 
QCursoroverrideCursor ()
 
QPalette palette ()
 
QFunctionPointer platformFunction (const QByteArray &function)
 
QString platformName ()
 
QPlatformNativeInterface * platformNativeInterface ()
 
QScreenprimaryScreen ()
 
Qt::KeyboardModifiers queryKeyboardModifiers ()
 
bool quitOnLastWindowClosed ()
 
void restoreOverrideCursor ()
 
QScreenscreenAt (const QPoint &point)
 
QList< QScreen * > screens ()
 
void setApplicationDisplayName (const QString &name)
 
void setDesktopFileName (const QString &name)
 
void setDesktopSettingsAware (bool on)
 
void setFallbackSessionManagementEnabled (bool enabled)
 
void setFont (const QFont &font)
 
void setHighDpiScaleFactorRoundingPolicy (Qt::HighDpiScaleFactorRoundingPolicy policy)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setOverrideCursor (const QCursor &cursor)
 
void setPalette (const QPalette &pal)
 
void setQuitOnLastWindowClosed (bool quit)
 
void setWindowIcon (const QIcon &icon)
 
QStyleHintsstyleHints ()
 
void sync ()
 
QWindowtopLevelAt (const QPoint &pos)
 
QWindowList topLevelWindows ()
 
QIcon windowIcon ()
 
- Static Public Member Functions inherited from QCoreApplication
void addLibraryPath (const QString &path)
 
QString applicationDirPath ()
 
QString applicationFilePath ()
 
QString applicationName ()
 
qint64 applicationPid ()
 
QString applicationVersion ()
 
QStringList arguments ()
 
bool closingDown ()
 
QAbstractEventDispatchereventDispatcher ()
 
int exec ()
 
void exit (int returnCode)
 
void flush ()
 
bool hasPendingEvents ()
 
bool installTranslator (QTranslator *translationFile)
 
QCoreApplicationinstance ()
 
bool isQuitLockEnabled ()
 
bool isSetuidAllowed ()
 
QStringList libraryPaths ()
 
QString organizationDomain ()
 
QString organizationName ()
 
void postEvent (QObject *receiver, QEvent *event, int priority)
 
void processEvents (QEventLoop::ProcessEventsFlags flags)
 
void processEvents (QEventLoop::ProcessEventsFlags flags, int ms)
 
void quit ()
 
void removeLibraryPath (const QString &path)
 
void removePostedEvents (QObject *receiver, int eventType)
 
bool removeTranslator (QTranslator *translationFile)
 
bool sendEvent (QObject *receiver, QEvent *event)
 
void sendPostedEvents (QObject *receiver, int event_type)
 
void setApplicationName (const QString &application)
 
void setApplicationVersion (const QString &version)
 
void setAttribute (Qt::ApplicationAttribute attribute, bool on)
 
void setEventDispatcher (QAbstractEventDispatcher *eventDispatcher)
 
void setLibraryPaths (const QStringList &paths)
 
void setOrganizationDomain (const QString &orgDomain)
 
void setOrganizationName (const QString &orgName)
 
void setQuitLockEnabled (bool enabled)
 
void setSetuidAllowed (bool allow)
 
bool startingUp ()
 
bool testAttribute (Qt::ApplicationAttribute attribute)
 
QString translate (const char *context, const char *key, const char *disambiguation, QCoreApplication::Encoding encoding, int n)
 
QString translate (const char *context, const char *sourceText, const char *disambiguation, int n)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Additional Inherited Members

- Public Types inherited from QApplication
enum  ColorSpec
 
- Public Types inherited from QCoreApplication
enum  Encoding
 
- Public Attributes inherited from QApplication
 CustomColor
 
 ManyColor
 
 NormalColor
 
- Public Attributes inherited from QCoreApplication
 CodecForTr
 
 DefaultCodec
 
 Latin1
 
 UnicodeUTF8
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QApplication
virtual bool event (QEvent *e) override
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Properties inherited from QApplication
 autoSipEnabled
 
 cursorFlashTime
 
 doubleClickInterval
 
 globalStrut
 
 keyboardInputInterval
 
 startDragDistance
 
 startDragTime
 
 styleSheet
 
 wheelScrollLines
 
 windowIcon
 
- Properties inherited from QGuiApplication
 applicationDisplayName
 
 desktopFileName
 
 layoutDirection
 
 platformName
 
 primaryScreen
 
 quitOnLastWindowClosed
 
 windowIcon
 
- Properties inherited from QCoreApplication
 applicationName
 
 applicationVersion
 
 organizationDomain
 
 organizationName
 
 quitLockEnabled
 
- Properties inherited from QObject
 objectName
 

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::BpsApplication ( int &  argc,
char **  argv 
)

The one and only constructor.

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

Member Function Documentation

◆ hideKeyboardRequest

void BpsApplication::hideKeyboardRequest ( QWidget aWidget)
signal

Signal emitted when the virtual keyboard hide button is hit.

Parameters
aWidgetThe active widget.

◆ keyboardTarget()

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.

◆ showAlphaKeyboard

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
aWidgetThe widget to show/hide the alphanumeric keyboard for.
aShowTrue to show, false to hide.

◆ showNumericKeyboard

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
aWidgetThe widget to show/hide the numeric keyboard for.
aShowTrue to show, false to hide.

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