关于qt的小问题
Tofloor
poster avatar
deepin
2018-01-12 05:59
Author
我使用的是qt community版本,可以使用dtk吗?
如果可以,怎么做?
Reply Favorite View the author
All Replies
avatar
deepin
2018-01-12 16:25
#1
顶一波!
Reply View the author
avatar
justforlxz
deepin
2018-01-12 17:04
#2
在pro文件中添加dtk的pkg信息,就可以使用dtk了。

  1. PKGCONFIG += dtkwidget
Copy the Code


还需要安装dtk的开发包,使用

  1. sudo apt build-dep deepin-tool-kit
Copy the Code
Reply View the author
avatar
deepin
2018-01-12 17:38
#3
https://bbs.deepin.org/post/151611
在pro文件中添加dtk的pkg信息,就可以使用dtk了。

装上了,但是qt community和深度商店开发出来的用户界面不一样背景发黄
Reply View the author
avatar
justforlxz
deepin
2018-01-12 17:58
#4
https://bbs.deepin.org/post/151611
装上了,但是qt community和深度商店开发出来的用户界面不一样背景发黄

emmm  你需要使用DApplication和DMainWindow和DTK提供的一些控件来自己做。
Reply View the author
avatar
justforlxz
deepin
2018-01-12 20:16
#5
https://blog.mkacg.com/2018/01/12/%E4%BD%BF%E7%94%A8DTK%E5%BC%80%E5%8F%91/
Reply View the author
avatar
justforlxz
deepin
2018-01-12 20:16
#6
你看一下吧,简单写了一点
Reply View the author