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

uic python: wrong generated code when using <zorder>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.14.1, 5.15.0 Alpha
    • Component/s: Build tools: uic
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      b31aef2900478ef463c65dff5a3ea92b8fc047d7 (qt/qtbase/5.14)

      Description

      When a UI file contains:

      <zorder>something</zorder>
      

      running:

      uic -g python file.ui
      

      will generate the code:

      something.raise()
      

      which is valid on C++, but for Python, the function is called raise_() due to the conflict with the reserved Python statement raise.

        Attachments

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

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            crmaurei Cristian Maureira-Fredes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes