有关 DTK 建议添加全局异常捕获和单例模式传参功能 #3412
Wing-summer
started this conversation in
Developer Discussion | 开发者讨论
Replies: 3 comments 10 replies
-
DTK 本身和 Qt 一样,是 exception-free 的,只使用 DTK 本身并不会造成写 cc @zccrs |
Beta Was this translation helpful? Give feedback.
4 replies
-
单例模式的传参我记得是支持的 |
Beta Was this translation helpful? Give feedback.
4 replies
-
看了下你的项目,能跟一位论坛用户对上号了🐶。如果有兴趣的话可以试试 DTK 的 qml 版本: https://github.com/linuxdeepin/dtkdeclarative ,它的发展前景更好(如果有动画和一些特效的需求的话它更合适),不过 dtkwidget 比它更成熟些是自然的。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当我们开发程序的时候,我们并不能保证写的代码一定不会出错,但开发应用频繁的 try catch 太难维护,希望添加一个全局异常捕获接口,具体可以参考
qBreakpad
。这个对于稍大的程序一定是需要的,加上更可以方便帮助开发者更加精准的定位错误来源以及触发函数,而不必必须自己实现或者再引用第三方库。DTK 提供了单例模式的实现,但是吧,它不能传参数,想要传参数还要自行实现,这个应该说对于稍大的应用程序也是个刚需,深度编辑器就自己实现的功能。
这个仅仅是个建议,不过我还是比较希望采纳的。
😄
Beta Was this translation helpful? Give feedback.
All reactions