[DTK] 希望dtk原生关于窗口主页网址可以自定义(现在只能默认官方)
Tofloor
poster avatar
汉堡包战士
deepin
8 hours ago
Author

希望dtk原生关于窗口主页网址可以自定义(现在只能默认官方网址)

就是如下(这里拿我写的软件举例)

注意是原生!不是模仿哦
 
Reply Favorite View the author
All Replies
avatar
𰻞𰻝面
deepin
8 hours ago
#1

我也发现了,原来是它的锅

Reply View the author
avatar
汉堡包战士
deepin
8 hours ago
#2
𰻞𰻝面

我也发现了,原来是它的锅

是的,deepin开发dtk也忒自私了吧(doge)

Reply View the author
avatar
𰻞𰻝面
deepin
7 hours ago
#3
汉堡包战士

是的,deepin开发dtk也忒自私了吧(doge)

你发布第一版的时候我还纳闷呢,这是要被官方收编了吧😂

Reply View the author
avatar
汉堡包战士
deepin
7 hours ago
#4

@deepin流云 快来解决😄

Reply View the author
avatar
汉堡包战士
deepin
7 hours ago
#5
𰻞𰻝面

你发布第一版的时候我还纳闷呢,这是要被官方收编了吧😂

甚至还在审核中

image.png

Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
7 hours ago
#6

DAboutDialog可以使用富文本,你可以写一个html的链接进去

Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
7 hours ago
#7

参考星火v4

https://gitee.com/spark-store-project/spark-store/blob/Flamescion/src/application.cpp

Reply View the author
avatar
汉堡包战士
deepin
7 hours ago
#8
神末shenmo

DAboutDialog可以使用富文本,你可以写一个html的链接进去

啥意思,链接不是一个字段吗confused

Reply View the author
avatar
deepin流云
Super Moderator
Community OP
6 hours ago
#9
汉堡包战士

@deepin流云 快来解决😄

用那个deepin-skills搞的么?先按shenmo大佬说的方案试试,我问问搞这个skills的同学。

Reply View the author
avatar
汉堡包战士
deepin
6 hours ago
#10
deepin流云

用那个deepin-skills搞的么?先按shenmo大佬说的方案试试,我问问搞这个skills的同学。

和skill无关,是dtk本身控件的问题

Reply View the author
avatar
汉堡包战士
deepin
6 hours ago
#11
deepin流云

用那个deepin-skills搞的么?先按shenmo大佬说的方案试试,我问问搞这个skills的同学。

这是我以前skill还没有出的时候让ai自学官方dtk手册时ai写的

Reply View the author
avatar
zccrs
deepin
6 hours ago
#12

DAboutDialog::setWebsiteLink 设置了不管用吗?

Reply View the author
avatar
汉堡包战士
deepin
6 hours ago
#13
zccrs

DAboutDialog::setWebsiteLink 设置了不管用吗?

设置确实不管用,我本来ai就要这样实现,但显示运行还是官方网址🤔

Reply View the author
avatar
hotime
deepin
3 hours ago
#14

我是这样处理的,自己创建并初始化DAboutDialog对象,然后传给DApplication对象:

    // 鉴于applicationHomePage并未传递至DAboutDialog,且上游dtk主分支中已将DAboutDialog的传参构造去掉,我们选择主动构造DAboutDialog后传给app
    const auto about = new DAboutDialog();
    about->setProductIcon(QIcon(QStringLiteral(":/icons/top.hotime.svgs2dci.svg")));
    about->setProductName(QCoreApplication::translate("MainWindow", "SVG -> DCI Icon Converter"));
    about->setVersion(Dtk::Widget::DApplication::applicationVersion());
    about->setWebsiteName(QStringLiteral("https://atomgit.com/hotime/svgs2dci"));  // 设置显示文本
    about->setWebsiteLink(QStringLiteral("https://atomgit.com/hotime/svgs2dci"));  // 设置链接地址
    about->setDescription(QCoreApplication::translate("MainWindow",
        "Convert SVG to deepin DCI icon pack with state/tone binding and real-time preview."));
    app.setAboutDialog(about);
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
3 hours ago
#15
汉堡包战士

啥意思,链接不是一个字段吗confused

你可以给自己的应用介绍里加上对应的链接

Reply View the author
avatar
兆兆嘟嘟嘟
Moderator
3 hours ago
#16
汉堡包战士

啥意思,链接不是一个字段吗confused

dtk本身就是这样的。比如,这个程序在深度运行,显示的是deepin的链接;在统信下运行,显示的是uos的链接;甚至在搞笑的下运行,显示的也是gxde的链接。这个取决于发行版和桌面环境。不过星火似乎有单独该链接的方案。

Reply View the author