Search code examples
c++qtqt5qt-creatorqtquick2

how is it possible to use private api of qt i.e(private/qquicktextnode_p.h)?


I want to draw text in my QSGNode, so I want to use private API QQuickTextNode that can be included from <private/qquicktextnode_p.h>.

I want to know how can I configure my qtcreator to access these private APIs and others.


Solution

  • If you are using qmake and want to add the private headers of the foo module you must add QT += foo-private, in this case:

    QT += quick-private