Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50913

QtDesigner/QtUiPlugin include order leads to deprecated compiler warnings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.0 Beta
    • Build System
    • None
    • Linux/X11 OpenSuse 13.2

    Description

      The following line "#include <QDesignerCustomWidgetInterface>" in application code leads to a compiler warning: "# warning Header <QtDesigner/QDesignerCustomWidgetInterface> is deprecated. Please include <QtUiPlugin/QDesignerCustomWidgetInterface> instead."

      The reason for using the deprecated path is because of having an include path of "... -I/disk/local/Qt-5.6.0-beta/include/QtDesigner -I/disk/local/Qt-5.6.0-beta/include/QtUiPlugin" coming from the qmake spec files.

      So here qmake is sending a warning about its own spec files, what doesn't make much sense as it could fix the situation instead.

      My use case is the designer plugin of the Qwt library ( http://qwt.sf.net ). I can modify the include path in a new version of Qwt, but for users updating Qt to 5.6, but staying with an older version of Qwt these warnings ( already got support requests about this ) are irritating.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes