Linked by Eugenia Loli-Queru on Sun 12th Nov 2006 01:51 UTC
Qt An important class to become familiar with is the one from which all Qt Widgets are derived: QObject. In this chapter, the authors discuss the QObject class in Qt4.
E-mail Print r 0   6 Comment(s)
Order by: Score:
Delphi
by EliGottlieb (1.76) on Sun 12th Nov 2006 19:27 UTC
EliGottlieb
Member since:
2005-10-30
Fans: 0

So they basically copied Delphi/Object Pascal's TObject with some container features?

RE: Delphi
by tbscope (1.86) on Sun 12th Nov 2006 19:53 UTC in reply to "Delphi"
tbscope Member since:
2005-07-06
Fans: 0

There's a saying:
"Great minds think alike"

Who says they copied it?
Maybe the way Delphi and Qt implement the object class is one of the better ways to do it? The bonus is that it's extremely easy to switch between the two api's.

A car has four wheels and a steering wheel.
It makes no sense to create a car with one wheel and no steering wheel. If you know what I mean.

RE: Delphi
by Chicken Blood (2.32) on Sun 12th Nov 2006 20:30 UTC in reply to "Delphi"
Chicken Blood Member since:
2005-12-21
Fans: 0

So they basically copied Delphi/Object Pascal's TObject with some container features?

Oh no, obviously they copied XMotif's Composite object class :-)

http://www.vaxination.ca/motif/Composite_3X.html

The parent-child pattern is pretty old, particularly with GUI toolkits. QObject makes use of this, with some nifty support for signals and slots, introspection and i18n too.

RE: Delphi
by Mitarai (-0.76) on Sun 12th Nov 2006 21:37 UTC in reply to "Delphi"
Mitarai Member since:
2005-07-28
Fans: 1

Yes but the Delphi version is better.

RE[2]: Delphi
by Chicken Blood (2.32) on Sun 12th Nov 2006 23:57 UTC in reply to "RE: Delphi"
Chicken Blood Member since:
2005-12-21
Fans: 0

Yes but the Delphi version is better.

How so?

RE[3]: Delphi
by Uncle_Al (2.56) on Mon 13th Nov 2006 09:04 UTC in reply to "RE[2]: Delphi"
Uncle_Al Member since:
2006-05-18
Fans: 0

Mitarai: Yes but the Delphi version is better.

Chicken Blood: How so?



Well, from the comments I read from Mitarai I get the impression that his reasoning might be: "Because it's not Qt" ;-)

But I too would be interested to read about how QObject could be improved, as I have not missed much yet.

Anyone?