Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt or Delphi... If you were to choose one over the other?

Tags:

qt

delphi

If you had a differential of either venturing into Delphi land or Qt land which would you choose? I know they are not totally comparable. I for one have Windows development experience with Builder C++ (almost Delphi) and MFC (almost Qt), with a bit more time working with Builder C++. Please take out the cross platform ability of Qt in your analysis.

I'm hoping for replies of people who have worked with both and how he or she would compare the framework, environment, etc.?

Thank you in advance for your replies.

like image 460
geo Avatar asked Sep 16 '08 14:09

geo


People also ask

Why should I use Qt?

Qt supports different development languages. C++ is efficient, powerful, and versatile. Qt's declarative UI language, QML, makes it easy to create UIs at blinding speed. You can even code in Python!

Is QT difficult to learn?

The overall development effort is minimal since Qt API are easy to understand and application functionality can be implemented with a smaller amount of code. C++ experts will find a lot of powerful APIs and tools in Qt which will make complicated things simple and new features easy to get done.

Is QT widely used?

Qt is a popular solution used in projects that are focused on creating embedded devices and Internet-of-Things software. It is also used for desktop and mobile development. One of the best-known Qt projects is KDE Plasma, which is often ranked as the best desktop environment.

Is QT good for C++?

Qt is de-facto the most suitable framework for the commercial application of a cross-platform GUI library available for C++, Python, Go, Haskell and some other languages. Of course, developers are free to choose from among many other frameworks for designing user interfaces: wxWidgets, JUCE, CEGUI, Tk or even GTK.


2 Answers

Edit: This answer was written in 2008. It probably is no longer so apt, though probably it is not entirely useless. Take with salt.

I have used both and have ended up going the Qt route. These are the reasons:

  • Trolltech offer quick and one-to-one support via email
  • Qt innovates, and introduces powerful new features regularly
  • The Qt documentation is amazing, and in the rare cases where it isn't, you can read the source code
  • Having the source code for Qt also allows you to debug inside your base libraries, which has been a life saver for me on many an occasion
  • The API is very consistent and well designed. We have put new people on the project and within a month they show deep knowledge of the toolkit and can learn new classes very quickly
  • It has bindings to other languages, eg. Ruby and Python.

C++ is somewhat of a downside, eg. compile times, packaging, and a less integrated IDE. However Qt does make C++ feel more like a higher level language. QStrings take all the pain out of string handling for example. Thus the additional issues with C++ that you would normally face, eg. more buggy code, are less prevalent in my experience when using Qt.

Also, there are more libraries for Delphi than for Qt, but this is mitigated due to the fact you can just use a c or c++ library in a Qt project, and also because Qt is so fully featured you often don't have to look any further.

It would be a strange situation where I would choose Delphi over Qt for a new project.

like image 162
mxcl Avatar answered Oct 10 '22 05:10

mxcl


I would pick Delphi. Of course you ask any pascalholic and he is sure to answer just the same. ;)

Qt again is fine, but the VCL just feels more polished. But then that could be my years of working with it so it just feels right. My experience with Qt was limited to a short lived project that ended up being rewritten in Delphi after it was determined that cross platform was not really needed thanks to the power of GoGlobal which can make any win32 app a web application, and therefore run on any platform.

like image 35
skamradt Avatar answered Oct 10 '22 06:10

skamradt