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

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

问题描述

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



对于具有该背景的开发人员来说,最好的方法是什么?学习Qt?我特别感兴趣的是如何完成我在Delphi中用Qt做的事情。



例如,什么是相当于Delphi框架的Qt?表单/框架继承如何?我应该使用Qt Designer,Qt Creator还是手工编写这些任务?



另一件事是Qt Widgets和对象的生命周期。 Qt是否处理小部件和对象的破坏,或者手动执行程序员?或者可能是Qt对某些类型的对象而不是其他类型的对象?



作为附注我知道C ++,所以语言本身不是一个问题。我关心图书馆。

解决方案

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


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

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.

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?

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?

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

解决方案

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天全站免登陆