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

Inlines of QtWidgets cannot be compiled because of QAccessibleTree

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.5.0
    • None
    • Windows 7 64-bit
    • 0552331d0e42e7b73f36e31ffd3cc511b50d2ec0

    Description

      I need to compile the inlines of QtWidgets on Windows to use in bindings. However, I cannot do that because QAccessibleTree, which is not exported, has an inlined constructor which causes linking to fail.

      Since this constructor is the only inlined member of QAccessibleTree, I'd like to suggest a solution:

      1. In qtbase/src/widgets/accessible/itemviews.h change:

          explicit QAccessibleTree(QWidget *w)
              : QAccessibleTable(w)
          {}
      

      to:

          explicit QAccessibleTree(QWidget *w);
      

      2. In qtbase/src/widgets/accessible/itemviews.cpp add:

      QAccessibleTree::QAccessibleTree(QWidget *w) : QAccessibleTable(w) {}
      

      I am sorry for not providing a proper patch but I do not have a working Qt build environment.

      Attachments

        1. QtWidgets-inlines.zip
          0.5 kB
          Dimitar Dobrev
        For Gerrit Dashboard: QTBUG-47569
        # Subject Branch Project Status CR V

        Activity

          People

            frederik Frederik Gladhorn
            ddobrev Dimitar Dobrev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes