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

Building with -no-feature-itemviews fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.6
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None

      Description

      Hello!

      I build qtbase without features:

      -no-feature-abstractbutton -no-feature-abstractslider -no-feature-action -no-feature-abstractbutton -no-feature-abstractslider -no-feature-action -no-feature-buttongroup -no-feature-calendarwidget -no-feature-checkbox -no-feature-clipboard -no-feature-codecs -no-feature-big_codecs -no-feature-colordialog -no-feature-columnview -no-feature-combobox -no-feature-commandlinkbutton -no-feature-completer -no-feature-contextmenu -no-feature-cssparser -no-feature-cups -no-feature-datawidgetmapper -no-feature-datetimeedit -no-feature-desktopservices -no-feature-dial -no-feature-dialog -no-feature-dialogbuttonbox -no-feature-dirmodel -no-feature-dockwidget -no-feature-dom -no-feature-draganddrop -no-feature-effects -no-feature-errormessage -no-feature-filedialog -no-feature-fontcombobox -no-feature-fontdialog -no-feature-fscompleter -no-feature-gestures -no-feature-graphicseffect -no-feature-graphicsview -no-feature-groupbox -no-feature-identityproxymodel -no-feature-inputdialog -no-feature-itemmodeltester -no-feature-itemviews -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-lineedit -no-feature-listview -no-feature-listwidget -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-menubar -no-feature-messagebox -no-feature-movie -no-feature-paint_debug -no-feature-pdf -no-feature-picture -no-feature-printdialog -no-feature-printer -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-progressbar -no-feature-progressdialog -no-feature-proxymodel -no-feature-pushbutton -no-feature-radiobutton -no-feature-resizehandler -no-feature-rubberband -no-feature-scrollarea -no-feature-scrollbar -no-feature-sessionmanager -no-feature-shortcut -no-feature-sizegrip -no-feature-slider -no-feature-sortfilterproxymodel -no-feature-spinbox -no-feature-splashscreen -no-feature-sqlmodel -no-feature-standarditemmodel -no-feature-statusbar -no-feature-statustip -no-feature-stringlistmodel -no-feature-style-stylesheet -no-feature-syntaxhighlighter -no-feature-systemtrayicon -no-feature-tabbar -no-feature-tabletevent -no-feature-tableview -no-feature-tablewidget -no-feature-tabwidget -no-feature-textbrowser -no-feature-textedit -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-treeview -no-feature-treewidget -no-feature-tuiotouch -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-whatsthis -no-feature-wizard -no-feature-xmlstreamwriter
      

       and compilation fails:

      qcommonstyle.cpp:846:34: error: 'QTextLayout' was not declared in this scope
      static QSizeF viewItemTextLayout(QTextLayout &textLayout, int lineWidth, int maxHeight = -1, int *lastVisibleLine = nullptr)
      

       I suppose the matter is in the need to explicitly include qtextlayout.h, which is implicitly included with the itemviews feature:

      #if QT_CONFIG(itemviews)
      #   include "private/qtextengine_p.h"
      #endif
      

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            maksim.shapovalov maksim.shapovalov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes