Qt vs Swing:异同? [英] Qt vs Swing : Similarities and Disimilarities?

查看:117
本文介绍了Qt vs Swing:异同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

他们有没有像 C++ 和 Java 那样的共同概念?那么,任何学习的人都会获得其他人的基础知识吗?像 C++ 和 Java 一样,有一些共同的 OOP 概念.您可以在 Java 中学习它们,也可以在 C++ 中应用它们,反之亦然.Qt 和 Swing 有这样的属性吗?

Do they have any common concepts like C++ and Java do? So that, anyone who learn either gets the basics of other? Like C++ and Java share some common concepts of OOP. You learn them in Java, you can apply them in C++ too and vice versa. Do, Qt and Swing has such property?

推荐答案

由于我使用过 Swing 和 QT,我认为它们确实有一些共同点,熟悉其中一个可以帮助您更快地了解另一个.一个很好的例子是布局.例如,无论使用 QT 还是 Swing(或我猜的任何其他 GUI 库),网格布局都是网格布局.两个框架之间的根本区别在于 Swing 基于事件的性质(基本上为所有内容实现侦听器并捕获您感兴趣的生成事件)与 QT 的插槽和信号机制.

Since I have used both Swing and QT, I think that they do have some commons and being familiar with one can help you to learn the other faster. A good example is layouts. For example a grid layout is a grid layout no matter whether QT or Swing (or any other GUI library I guess) is used. The fundamental difference between the two frameworks is the event based nature of Swing (basically implementing listeners for everything and catching the generated events that interest you) vs. the slots and signals mechanism of QT.

这篇关于Qt vs Swing:异同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆