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

Inlines of QtWidgets cannot be compiled because of QAccessibleTree

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes