LPeJuN6lLsS9
V2EX  ›  Qt

telegram 的客户端为什么不用 qml

  •  
  •   LPeJuN6lLsS9 · Jun 5, 2017 · 8767 views
    This topic created in 3272 days ago, the information mentioned may be changed or developed.
    就是官方的那个,1.0 版的 material 风格真的还原的挺好的( ripple 效果之类),动画各种流畅。真的让人觉得是 qml 做的,然而打开源码一看是用 widget 硬撸出来的,这得多大毅力?佩服但是不解

    https://github.com/telegramdesktop/tdesktop
    6 replies    2023-11-02 14:02:00 +08:00
    shengjie77
        1
    shengjie77  
       Jun 11, 2017
    厉害了,不过看了点源码,里面的代码风格都不怎么统一。。。
    nicevar
        2
    nicevar  
       Jul 3, 2017
    因为 qml 很长一段时间不太稳定,版本变化比较多,兼容性有不少问题,预览经常导致 QtCreator 崩溃
    widget 就稳定多了,框架熟练了开发效率也不比 qml 低
    LPeJuN6lLsS9
        3
    LPeJuN6lLsS9  
    OP
       Jul 3, 2017
    @nicevar 有道理,我已经打消用 qml 写玩具的念头了

    说实话官方文档的 qt quick controls 1 vs 2 我读了很多遍,就是没搞懂 1 和 2 啥关系。
    要做列表的话用 1 的 listview 加 2 的控件吗?莫名其妙

    qt creator 我就用了几次,现在最新版的选项界面窗孔一拖动就飞到屏幕外,qml 编辑界面有些字体奇大,布局让人很难受
    beichao
        4
    beichao  
       Jul 28, 2017
    新版的 telegram 已经是 QML 写的界面了,可以去看一下
    LPeJuN6lLsS9
        5
    LPeJuN6lLsS9  
    OP
       Jul 29, 2017
    @beichao 我在这 repo 里没找到啊: https://github.com/telegramdesktop/tdesktop/search?l=C%2B%2B
    在其他的 repo 吗?
    asuraa
        6
    asuraa  
       Nov 2, 2023
    @beichao 也是没看到 qml 啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4541 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:04 · PVG 09:04 · LAX 18:04 · JFK 21:04
    ♥ Do have faith in what you're doing.