开发者

how to hide menubar in qt(symbian)

开发者 https://www.devze.com 2023-03-16 04:37 出处:网络
Question 1: I create menubar with below code Qt::WindowFlags flags = win开发者_JS百科dowFlags(); flags |= Qt::WindowSoftkeysVisibleHint;

Question 1: I create menubar with below code

Qt::WindowFlags flags = win开发者_JS百科dowFlags();
flags |= Qt::WindowSoftkeysVisibleHint;
setWindowFlags(flags);
showFullScreen();

I want hide the menubar, what shall do now?

Question 2: When i switch my app to background(long press home), it will enter the runing app list, it's ok, but there's a menubar with a exit button at the bottom, how can i remove it?


Normally when you enter full screen on Symbian, soft-keys are disabled (not shown on screen). With your code, soft-keys are enabled in full screen also.

If you wont soft-keys in full screen, then leave window flags untouched.

How do you switch your app into background?

0

精彩评论

暂无评论...
验证码 换一张
取 消