[Interest] Using private QtQuick APIs

Christian Gagneraud chgans at gmail.com
Wed Jan 17 11:19:57 CET 2018


On 17 January 2018 at 21:32, Uwe Rathmann <Uwe.Rathmann at tigertal.de> wrote:
> On Wed, 17 Jan 2018 08:25:35 +0000, Mitch Curtis wrote:
>
> This how I do it ( see https://github.com/uwerat/qskinny ):
>
> QT += quick quick-private
> CONFIG += no_private_qt_headers_warning
>
> To get rid of warnings from Qt headers, when doing pedantic checks I also
> have the following lines:
>
> linux {
>     QMAKE_CXXFLAGS += \
>         -isystem $$[QT_INSTALL_HEADERS] \
>         -isystem $$[QT_INSTALL_HEADERS]/QtCore \
>         -isystem $$[QT_INSTALL_HEADERS]/QtGui \
>         -isystem $$[QT_INSTALL_HEADERS]/QtGui/$$[QT_VERSION]/QtGui \
>         -isystem $$[QT_INSTALL_HEADERS]/QtQuick \
>         -isystem $$[QT_INSTALL_HEADERS]/QtQuick/$$[QT_VERSION]/QtQuick \
>         -isystem $$[QT_INSTALL_HEADERS]/QtQml \
>         -isystem $$[QT_INSTALL_HEADERS]/QtQml/$$[QT_VERSION]/QtQml
> }

Honestly, shame on you for doing that. You're depending on undefined
behaviour and hiding traces, what can go wrong?

Why do you need private headers in the first place?

Chris

>
> HTH,
> Uwe
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list