[Topic DIscussion] DTK,要适应更多IDE的开发环境, QtCreator对cmake项目操作并不完善
Tofloor
poster avatar
deepin
2022-11-08 04:49
Author

前言

如果你接触Linux很多项目,你会发现很多开源软件大部分都在使用Cmake来构建项目的架构,主要是因为Cmake的跨平台特性比较显著、新的第三方资源库也在Cmake体系中。

而Qt Creator代码编辑器,我自己也用了半个多用,主要是qmake方式创建项目比较多一些,Cmake也创建并使用过,但是Cmake项目在Qt Creator中其操作和配置的能力仍不如Qmake项目。

问题
24A4D1C297ED0142F51987FC0EE48ACD.jpg

820217FC74C4E3C20853C4316105F8D7.jpg
比如Cmake项目需要添加新的文件: new.cpp和new.h, 我发现QtCreator的菜单栏中“添加新文件”选项被禁用,后来我更换最新版本的Qt Creator仍是如此,然后通过搜索相关的信息,发现自己的使用情况并不是个例,而是QtCreator本身对于Cmake的构建方式仍未完善。


最后,QtCreator不能很好的去支持Cmake项目开发,这本身就是对深度DTK发展的一种阻碍,DTK需要快速做出改变,需要适配更多代码编辑器的开发环境,比如现在流行的VsCode,它就支持Qt插件的使用,也希望深度的开源软件开发者们也能进行新的尝试。

Reply Favorite View the author
All Replies
1 / 2
To page
[^_^]
deepin
2022-11-08 17:56
#1

创建文件直接 CtrlN 就好了,不过需要自己手动再右键一次 cmake,不然工作树里看不到文件

Reply View the author
[^_^]
deepin
2022-11-08 17:56
#2

creator 对 cmake 的适配确实还不太好

Reply View the author
depend
deepin
2022-11-08 18:17
#3

是的,我写小项目也喜欢就直接创建qmake工程

Reply View the author
zccrs
deepin
2022-11-08 22:21
#4

小项目还是用qmake省心,QtCreator最近几个版本的更新基本上都会优化cmake项目的体验,但是肯定还比不上qmake的体验

Reply View the author
zccrs
deepin
2022-11-08 22:22
#5

这个问题肯定会越来越好,Qt自己都全面转cmake了,QtCreator肯定要下大力气搞cmake

Reply View the author
deepin
2022-11-09 02:58
#6
[^_^]

创建文件直接 CtrlN 就好了,不过需要自己手动再右键一次 cmake,不然工作树里看不到文件

还不如在终端操作,更方便

Reply View the author
[^_^]
deepin
2022-11-09 17:35
#7

还不如在终端操作,更方便

你当然可以。

Reply View the author
deepin
2022-11-09 21:20
#8
[^_^]

你当然可以。

vscode,把终端后台与IDE集成在一起,确实比其他IDE要更实用一些。

Reply View the author
[^_^]
deepin
2022-11-10 01:15
#9

vscode,把终端后台与IDE集成在一起,确实比其他IDE要更实用一些。

奥,说起来,cmake 项目的 DTK 是可以用 vscode 开发的。

Reply View the author
deepin
2022-11-10 02:36
#10
[^_^]

奥,说起来,cmake 项目的 DTK 是可以用 vscode 开发的。

这就真的不错了,可以尝试。

Reply View the author
arkui-x
deepin
2023-02-12 23:17
#11
The user is banned, and the content is hidden.
deepin
2023-02-12 23:19
#12
arkui-x
The user is banned, and the content is hidden.

DTK已经在更新。

Reply View the author
arkui-x
deepin
2023-02-12 23:21
#13
The user is banned, and the content is hidden.
deepin
2023-02-12 23:24
#14
arkui-x
The user is banned, and the content is hidden.

DTK就是Qt的分支,是为了适应deepin系统的软件界面风格。

Reply View the author
arkui-x
deepin
2023-02-12 23:30
#15
The user is banned, and the content is hidden.
arkui-x
deepin
2023-02-12 23:32
#16
The user is banned, and the content is hidden.
deepin
2023-02-12 23:36
#17
arkui-x
The user is banned, and the content is hidden.

更新Qt底层,需要熟悉GUI框架很多内容,以及相关软件架构测试,比如鸿蒙的ArkUi就是一种偏离安卓GUI应用开发的开发套件体系。

Reply View the author
arkui-x
deepin
2023-02-12 23:40
#18
The user is banned, and the content is hidden.
deepin
2023-02-12 23:44
#19
arkui-x
The user is banned, and the content is hidden.

但是开发ArkUi软件的IDE(代码编辑器)目前只在Windows、MacOS中适配,Linux端仍没有进行适配。

Reply View the author
arkui-x
deepin
2023-02-12 23:46
#20
The user is banned, and the content is hidden.
1 / 2
To page