Linked by Eugenia Loli 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.
Order by: Score:
Delphi
by EliGottlieb on Sun 12th Nov 2006 19:27 UTC
EliGottlieb
Member since:
2005-10-30

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

Reply Score: 1

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

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.

Reply Score: 5

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

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.

Reply Score: 2

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

Yes but the Delphi version is better.

Reply Score: 1

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

Yes but the Delphi version is better.

How so?

Reply Score: 1

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

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?

Reply Score: 1