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

Widget Designer: XML generated for QWebEngineView widgets cannot be used with CONFIG-=depend_includepath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.12.3, 5.13.0 Beta3
    • Tools: Designer
    • None

    Description

      Several of the widgets that can be used in the designer are implemented as custom widgets under the hood, e.g. QUndoView and QWebEngineView.

      For QUndoView, the XML entry in the ui file is as follows:

      <customwidget>
        <class>QUndoView</class>
        <extends>QListView</class>
        <header>QUndoView</header>
      </customwidget>

      For QWebEngineView, however, the generated XML is this:

      <customwidget>
        <class>QWebEngineView</class>
        <header global="true>QtWebEngineWidgets/QWebEngineView</header>
      </customwidget>

       

      The important difference here is that the header path for QUndoView does not include the parent folder `QtWidgets` in which that header resides. This is significant when using the CONFIG-=depend_includepath option: For QUndoView it is sufficient to add DEPENDPATH+=$$[QT_INSTALL_HEADERS]/QtWidgets to work around QTBUG-74617. But for QWebEngineView one needs to add DEPENDPATH+=$$[QT_INSTALL_HEADERS] instead - which defeats the purpose of CONFIG-=depend_includepath.

       

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            berglerm Manuel Bergler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes