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

Crash when changing enabled state of Button from onPressed slot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.2
    • Quick: Controls 2
    • None
    • Linux/X11

    Description

      Application crashes from Qt when Button's enabled property is changed through a binding to a C++ QObject's property modified from onPressed slot of the same Button. I attach the stack trace: Button-onPressed-enabled-crash.txt

      Example: 

      Window {

          Button

      {                 enabled: c++OwnedContexPropertyObject.property         onPressed: c++OwnedContexPropertyObject.change_property_value()//Q_INVOKABLE changes "property"'s value and emits it's signal         }

          Button

      {                 enabled: c++OwnedContexPropertyObject.property                 onPressed: c++OwnedContexPropertyObject.change_property_value()//Q_INVOKABLE changes "property"'s value and emits it's signal         }

       

      With exact same infrastructure, but replacing the onPressed slot by onClicked the issue doesn't reproduce anymore.

      Attachments

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

        Activity

          People

            ciprian-anton Ciprian Anton
            ciprian-anton Ciprian Anton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes