Qt为Delphi开发人员 [英] Qt for Delphi developers

查看:203
本文介绍了Qt为Delphi开发人员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一本书或教程解释Delphi / C ++ Builder / VCL开发人员的Qt吗?

Does someone know of a book or tutorial explaining Qt for Delphi / C++ Builder / VCL developers?

对于开发人员来说,学习Qt?我特别感兴趣的是如何完成的事情,我知道如何在Delphi与Qt。

What would be the best approach for a developer with that background to learn Qt? I'm particulary interested in how to accomplish things that I know how to do in Delphi with Qt.

例如,什么是Qt相当于Delphi框架?什么是窗体/框架继承?我应该使用Qt Designer,Qt Creator还是手工代码来执行这些任务?

For example, what is the Qt equivalent to Delphi Frames? What about Forms/Frames inheritance? Should I use Qt Designer, Qt Creator or hand code for such tasks?

另一件事是Qt Widgets和对象生命周期。 Qt是否照顾窗口小部件和对象破坏或驱动程序员手动做?或者可以是Qt为某些类型的对象,但不是为其他类型?

Another thing is Qt Widgets and objects life cycle. Does Qt take care of widgets and objects destruction or shoul the programmer do it manually? Or may be Qt does that for some types of objects but not for other types?

另外,我知道C ++,所以语言本身不是一个问题。

As a side note I do know C++, so the language itself is not an issue. I'm concerned with the library.

推荐答案

一种方法可能是研究 FreeCLX开源项目。它包含使用Qt的VCL的实现。所以如果你好奇哪个Qt窗口部件映射到VCL类型,这应该让你的方式。但是请注意,Qt 2.x.x使用了多重继承(在当前的Qt中不再是true),所以FreeCLX通过一个特殊的库来连接到Qt。

One way might be to study the source for the FreeCLX open source project. It contains an implementation of the VCL using Qt. So if you are curious which Qt widget maps to a VCL type, that should get you on your way. Note, however, that Qt 2.x.x used multiple inheritance (no longer true in current Qt), so the FreeCLX interfaces to Qt via a special library to flatten this out.

这篇关于Qt为Delphi开发人员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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