Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

上海枫泾古镇一角_20240824上海枫泾古镇一角_20240824
0

微信 Linux 版为何选择“过气”的 Qt 框架?

引言:

微信,作为中国最受欢迎的即时通讯软件,终于推出了官方的 Linux 版本。然而,令人意外的是,微信选择了一个诞生于 90 年代的“过气”框架 Qt 来构建其跨平台应用。这不禁让人好奇,在 Flutter、Electron 和 React Native 等新兴框架大行其道的今天,微信为何会选择 Qt?

Qt 的辉煌与没落:

Qt 诞生于 1991 年,由两位挪威程序员 Haavard Nord 和 Eirik Chambe-Eng 共同开发。它凭借着强大的跨平台能力、丰富的组件库和灵活的架构,迅速成为 C++ 社区中备受推崇的 GUI 框架。Qt 曾被用于构建 Google Earth、Skype 客户端等知名软件,并一度成为 Linux 上 C++ GUI开发的事实标准。

然而,随着移动互联网时代的到来,Qt 逐渐失去了其优势。一方面,新兴的跨平台框架如 Flutter、Electron 和 React Native 凭借着更简洁的开发流程和更强大的性能,吸引了越来越多的开发者。另一方面,Qt 的学习曲线相对陡峭,且缺乏足够的社区支持,也阻碍了其发展。

微信选择 Qt 的原因:

尽管 Qt 已经不再是主流的跨平台框架,但微信选择 Qt 依然有其合理性。

  • 成熟的技术栈: Qt 经过多年的发展,已经拥有了成熟的技术栈和丰富的功能库,能够满足微信对跨平台应用开发的需求。
  • C++ 的优势: 微信的底层代码主要使用 C++ 编写,选择 Qt 可以最大程度地复用现有代码,降低开发成本。
  • 人才储备: 尽管 Qt的开发者数量相对较少,但腾讯拥有丰富的 C++ 开发人才,能够快速组建 Qt 开发团队。

Qt 的未来:

尽管 Qt 面临着来自新兴框架的挑战,但它依然拥有自己的优势。Qt 拥有庞大的用户群体和丰富的生态系统,并且在嵌入式和物联网领域依然保持着领先地位。未来,Qt 可能会继续专注于这些领域,并不断提升其性能和功能,以保持其竞争力。

结论:

微信选择 Qt 构建其 Linux 版本,体现了其对技术稳定性和代码复用性的重视。尽管 Qt 已经不再是主流的跨平台框架,但它依然拥有自己的优势,并将在未来继续发挥重要作用。

参考文献:


>>> Read more <<<

Views: 0

0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注