[Qt-interest] How does qfontdatabase_qws.cpp access private data from qfontdatabase.h?

Linda Maria linda.maria.bjork at gmail.com
Thu Jul 9 11:38:45 CEST 2009


Hi

I thought I knew how to read C++ code, but obviously I was wrong. I cannot
figure out how private data from qfontdatabase.cpp can be accessed from
qfontdatabase.h. For example:


QFontDatabasePrivate is delclared and partly implemented in
qfontdatabase.cpp and only forward declared in qfontdatabase.h. Then,
qfontdatabase_qws.cpp starts accessing the QFontDatabasePrivate
implementation. How is this done?

It would be nice if Qt used more of pure C++ code rather than showing off
with macro definitions.

Thanks,

Linda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090709/9f4f6644/attachment.html 


More information about the Qt-interest-old mailing list