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

Crash when an item lost the focus

    XMLWordPrintable

Details

    • 20204fe58b77d7f62d3dac4e574bdef528199518

    Description

      When an item lost the focus to another ther is a segfault.

      Here is a simple that make the application crash.

      import QtQuick 2.0
      Rectangle {
      width: 100
      height: 100
      Column{
      spacing:15
      Rectangle{
      id:input
      color:"green"
      onFocusChanged:

      { color=focus?"red":"green" }

      width:20
      height:20
      MouseArea{
      anchors.fill : parent
      onClicked:

      { parent.focus = true }
      }
      }
      Rectangle{
      id:input2
      color:"green"
      width:20
      height:20
      onFocusChanged:{ console.log("here1") color=focus?"red":"green" }
      MouseArea{
      anchors.fill : parent
      onClicked:{ parent.focus = true }

      }
      }
      }
      }

      When I click on the first square it turn to red. But next when I click on the second rectangle a segfault occur.

      Attachments

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

        Activity

          People

            smd Jan Arve
            j_dubois Jonathan Dubois
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes