如何在qt的应用程序中一直隐藏deepin V20系统的状态栏?
Tofloor
poster avatar
zhaolu2000
deepin
2020-10-01 00:14
Author
本帖最后由 zhaolu2000 于 2020-9-30 16:14 编辑

我知道发送命令可以隐藏任务栏。
dbus-send --print-reply --type=method_call --dest=com.deepin.dde.daemon.Dock /com/deepin/dde/daemon/Dock org.freedesktop.DBus.Properties.Set string:'com.deepin.dde.daemon.Dock' string:'HideMode' variant:int32:1


现在有个问题,我要开发一个全屏的应用程序,可是系统任务栏一直随着鼠标忽上忽下的,让人很讨厌。如何在全屏的应用程序中能够一直隐藏任务栏呢?即便鼠标移动到最下面,任务栏也不要出来。


Reply Favorite View the author
All Replies
zhaolu2000
deepin
2020-10-01 00:14
#1
自己顶自己,看看能不能在最新回复中,找到自己的这个帖子。
Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2020-10-01 00:30
#2
正常全屏是不显示任务栏的,你的全屏有点问题吧!
Reply View the author
zhaolu2000
deepin
2020-10-01 01:05
#3
在deepin V20中,对全屏窗口有什么要求吗?我这是一个继承自QOpenGLWidget的普通窗口。
在发送的命令中,除了“HideMode”外,还可以发送什么其他字段吗?
如何在qt的代码中,让状态栏一直不显示。


谢谢


Reply View the author
如空
deepin
2022-05-15 08:02
#4

隐藏任务栏:dbus-send --print-reply --type=method_call --dest=com.deepin.dde.daemon.Dock /com/deepin/dde/daemon/Dock org.freedesktop.DBus.Properties.Set string:'com.deepin.dde.daemon.Dock' string:'HideMode' variant:int32:1

显示任务栏:dbus-send --print-reply --type=method_call --dest=com.deepin.dde.daemon.Dock /com/deepin/dde/daemon/Dock org.freedesktop.DBus.Properties.Set string:'com.deepin.dde.daemon.Dock' string:'HideMode' variant:int32:0

Reply View the author