Home > Qt > The QObject Class in Qt4 The QObject Class in Qt4 Eugenia Loli 2006-11-12 Qt 6 Comments 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. About The Author Eugenia Loli Ex-programmer, ex-editor in chief at OSNews.com, now a visual artist/filmmaker. Follow me on Twitter @EugeniaLoli 6 Comments 2006-11-12 7:27 pm EliGottlieb So they basically copied Delphi/Object Pascal’s TObject with some container features? 2006-11-12 7:53 pm tbscope 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. 2006-11-12 8:30 pm Chicken Blood 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. 2006-11-12 9:37 pm Mitarai Yes but the Delphi version is better. 2006-11-12 11:57 pm Chicken Blood Yes but the Delphi version is better. How so? 2006-11-13 9:04 am Uncle_Al 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?