Qt Android get Home and recent Apps button press -


i need turn our qt-android app kind of kiosk-app app wont close anymore if user presses home, or recent apps button. our app displayed on kinds of tvs or tablets , should not exitable user isnt allowed exit it.

the button pretty easy handle actually

bool application::notify(qobject* object, qevent* event) {  ...  #ifndef q_os_android if (event->type() == qevent::keypress) {     qkeyevent* keyevent = static_cast<qkeyevent*>(event);     if (keyevent->key() == qt::key_back)     {         qdebug() << "back key got pressed!";         keyevent->accept();         return true;     } } #endif // q_os_android  ...  } 

this works button.

my main problem home , recent apps button presses not sent application. there way signals?

greetings georg


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -