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

Internal symbol "column" clashes with user code (REGRESSION)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.1
    • None
    • Linux/X11

    Description

      In 5.12.1, the symbol "column" (all lower case) seems to be an undocumented symbol which causes mis-behavior if user QML code declares a Column object using id: column.  This problem appeared some time since 5.8.

      Internal identifiers should use some naming convention to prevent clashing or interfering with user code, for example using an initial underscore.

      In this case, the published example for using callLater() in https://doc.qt.io/qt-5/qml-qtqml-qt.htmlis broken because of this (the example is supposed to change the width of all displayed items to be the width of the widest item, but doesn't; if the id "column" is changed to something else then the example works).

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jimav Jim Avera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes