QT 调用Gnome API问题

软件和网站开发以及相关技术探讨
回复
forverlove
帖子: 15
注册时间: 2010-08-08 18:54

QT 调用Gnome API问题

#1

帖子 forverlove » 2010-08-11 22:34

QT 可以调用Gnome API么?
怎么做。。

我想在QT中切换 桌面壁纸  ,这应该要调用Gnome API么。。
新手请耐心解答。谢谢
头像
slax
帖子: 1099
注册时间: 2009-08-17 3:52

Re: QT 调用Gnome API问题

#2

帖子 slax » 2010-08-12 9:09

shell
We believe that the internet should be public, open and accessible.
软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。
iceplayer! linux音乐新体验~ 最新版本4.0.5-20110520已更新!viewtopic.php?f=137&t=252461
想要iceplayer 测试版麼?加入QQ群80071264吧,在code.google也可找到
http://www.iceplayer.org/
http://jasy.ice.blog.163.com/
forverlove
帖子: 15
注册时间: 2010-08-08 18:54

Re: QT 调用Gnome API问题

#3

帖子 forverlove » 2010-08-12 21:22

楼上的  howto 谢谢
头像
slax
帖子: 1099
注册时间: 2009-08-17 3:52

Re: QT 调用Gnome API问题

#4

帖子 slax » 2010-08-13 8:20

设置显示壁纸方式:
gconftool-2 --type=string --set /desktop/gnome/background/picture_options wallpaper/centered/scaled/stretched
设置壁纸路径:
gconftool-2 --type=string --set /desktop/gnome/background/picture_filename /home/XXX/XXX.jpg

你直接用 system(XXX); 就行了。
We believe that the internet should be public, open and accessible.
软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。
iceplayer! linux音乐新体验~ 最新版本4.0.5-20110520已更新!viewtopic.php?f=137&t=252461
想要iceplayer 测试版麼?加入QQ群80071264吧,在code.google也可找到
http://www.iceplayer.org/
http://jasy.ice.blog.163.com/
forverlove
帖子: 15
注册时间: 2010-08-08 18:54

Re: QT 调用Gnome API问题

#5

帖子 forverlove » 2010-08-13 12:59

回家试试 多谢了
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: QT 调用Gnome API问题

#6

帖子 eexpress » 2010-08-13 13:00

qt 和 gnome。。。 这何关。。。

api的概念。。。。
● 鸣学
头像
slax
帖子: 1099
注册时间: 2009-08-17 3:52

Re: QT 调用Gnome API问题

#7

帖子 slax » 2010-08-14 11:14

eexpress 写了:qt 和 gnome。。。 这何关。。。

api的概念。。。。
显然没关系,,, :em04
We believe that the internet should be public, open and accessible.
软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。
iceplayer! linux音乐新体验~ 最新版本4.0.5-20110520已更新!viewtopic.php?f=137&t=252461
想要iceplayer 测试版麼?加入QQ群80071264吧,在code.google也可找到
http://www.iceplayer.org/
http://jasy.ice.blog.163.com/
forverlove
帖子: 15
注册时间: 2010-08-08 18:54

Re: QT 调用Gnome API问题

#8

帖子 forverlove » 2010-08-15 0:51

不是太明白  
我在QT中直接引入glib 库,,却有一大堆的错误。
gnome 的那些库也一样。。为什么会这样呢。
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: QT 调用Gnome API问题

#9

帖子 tusooa » 2010-08-15 13:19

lz,用Gtkmm呗。
都Cxx的。
或者用PyGtk和PyQt。
搞不懂。
用habak,如果用fvwm

代码: 全选

] ls -ld //
回复