QDeclarativeStyledText is private, and not usually exported from the library -- it uses Q_AUTOTEST_EXPORT rather than Q_DECLARATIVE_EXPORT. This means you won't really be able to use it unless you modify Qt (or use your own copy of the class; it doesn't rely on any other private classes).

[quote author="bunjee" date="1295213482"]Maybe the Qt Team should consider revealing a little bit more of those encapsulated classes :).[/quote]

To provide a little background on this...the number of public classes for the initial release was intentionally kept very minimal, as we didn't want to force all the newly introduced QML elements to maintain C++ binary compatibility as well as QML compatibility (this should make it easier to e.g. move a QML application to the QML scene graph).

Unfortunately at the moment this means more work for those writing custom C++ components :-( If you have a list of things you'd like to see made public, a suggestion at http://bugreports.qt.nokia.com would be much appreciated.