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

[qmltc] Customizing Overlay.modal attached property causes compilation errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.1, 6.8, 6.9.0 FF
    • 6.7.3, 6.8.0
    • QML: Compiler
    • None
    • All
    • 21cd756a4 (dev), d271e64ec (6.8)

    Description

      Customizing Overlay.modal attached property causes C++ compilation errors.

      Sample code:

      import QtQuick
      import QtQuick.Templates
      
      Popup {
          Overlay.modal: Rectangle {
              color: 'grey'
          }
      }
      

      QML type compiler generates code

      ...
          auto o = new MyPopup_Rectangle(creator, engine, this);
      ...
      

      Which naturally produces compilation errors:

      .qmltc\test\mypopup.cpp(375): error C2061: syntax error: identifier 'MyPopup_Rectangle'
      .qmltc\test\mypopup.cpp(376): error C3536: 'o': cannot be used before it is initialized
      ...
      

      See standalone example test.zip

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              studiosus Vladimir Belyavsky
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes