如何在qt(symbian)中隐藏菜单栏

发布于 2024-11-17 23:52:03 字数 277 浏览 8 评论 0原文

问题一: 我用下面的代码创建菜单栏,

Qt::WindowFlags flags = windowFlags();
flags |= Qt::WindowSoftkeysVisibleHint;
setWindowFlags(flags);
showFullScreen();

我想隐藏菜单栏,现在该怎么办?

问题2: 当我将应用程序切换到后台(长按home)时,它会进入正在运行的应用程序列表,没关系,但是底部有一个带有退出按钮的菜单栏,我该如何删除它?

Question 1:
I create menubar with below code

Qt::WindowFlags flags = windowFlags();
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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哀由 2024-11-24 23:52:03

通常,当您在 Symbian 上进入全屏时,软键会被禁用(屏幕上不会显示)。使用您的代码,软键也可以全屏启用。

如果您不想在全屏模式下使用软键,请保持窗口标志不变。

如何将应用程序切换到后台?

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文