mailto Contact Us
Login | Register
ICS Network - Challenge
ICSNetwork

ICSNetwork Challenge Question

Q. If you look at the Qt source, the class QWidget has only one private non-static data member. This is surprising for a class that holds so much information. There is, in fact, a technical reason for this. What is it?

A. All data members of QWidget are in a separate class, accessible only through a private member of QWidget: the d-pointer. This technique, known under various names (d-pointer, Pimpl, handle/body or Cheshire Cat) is used because adding data members directly to the QWidget class between versions of the Qt library would break binary compatibility. For more information, see http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++

And the winner is: Ron Natalie, Herndon, VA

Check out our Hall of Fame for previous answers and winners.


HOW TO ENTER:

No Purchase Necessary. To enter, email your answer to icsnetwork@ics.com. To be eligible, entries must be completed and received on or by the closing date indicated above. Entries must include your name, address, email address and phone number. Incomplete entries will be disqualified. ICS is not responsible for lost, misdirected or delayed entries. Entries received by telephone, fax, courier or personal delivery will not be accepted. The winner will be selected in a random drawing of all correct entries received by the closing date.

CONTEST RULES:

  1. The contest is open to anyone except current and former ICS and Trolltech employees.
  2. The prize is not redeemable in cash and must be accepted as awarded.
  3. Decisions of the contest judges are final – no substitutions will be available.
  4. By claiming the prize, the winner authorizes the use, without additional compensation of his or her name and/or likeness and/or voice/photograph and municipality of residence for promotion and/or advertising purposes in any manner and in any medium which ICS may deem appropriate.
  5. ICS retains the rights, in its absolute and sole discretion, to make substitutions of equivalent kind or approximate value in the event of the unavailability of any prize or component of the prize for any reason whatsoever.
  6. ICS reserves the right to withdraw or terminate this contest at any time without prior notice.
  7. One entry per question per person.



The ICSNetwork is Sponsored by

QtCentre.orgQtCentre.org:
visit the ICSNetwork forum at www.qtcentre.org to ask questions or leave feedback on any ICSNetwork topic.

Prentice Hall Professional, publishers of several essential Qt Books:

An Introduction to Design Patterns in C++ with Qt 4
An Introduction to Design Patterns in C++ with Qt 4 by Alan Ezust and Paul Ezust
Programming with Qt 4, Second Edition
C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette and Mark Summerfield
Rapid GUI Programming with Python and Qt
Rapid GUI Programming with Python and Qt by Mark Summerfield

Apress, publishers of:

Foundations of Qt Development
Foundations of Qt Development by Johan Thelin


Next on the ICSNetwork:

We'll have a new topic in December 2008


Events:

Qt QuickStart
Seminars:

> Register here


Learning Center:


 

Contact Us | Quote Request | Privacy Policy | Site Map | Trademarks | Other ICSs
© 1999-2008 Integrated Computer Solutions, Inc.