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

Program crashed in Qt6.5.3 when using TextField component.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.4, 6.5
    • 6.5.3
    • None
    • I installed the Qt6.5.3 with the maintenance online tool.
    • Linux/X11, Windows

    Description

      When I use the TextField in Qt6.5.3,I meet a bug which caused the program crash.If I emit a singleton type's signal in the TextField of "onFocusChanged",the program will crashed.When I use the TextInput in Qt6.5.3,it's all right.Besides,I try to use the Qt6.5.0 with TextField,it's all right.Therefore, I think it's a bug in Qt6.5.3.My test code is as following:

      //Main.qml
      import QtQuick
      import QtQuick.Controls
      Window {
          id: root
          width: 640
          height: 480
          visible: true   
            title: qsTr("Hello World")
          color: KeyBoardInfo.keyBoardInfoVisible ? "red" : "green"
          TextField{
              onFocusChanged: {
                  KeyBoardInfo.keyBoardInfoVisible = false;
                  KeyBoardInfo.xxxsignal();
              }
          }
      }
      //KeyBoardInfo.qml
      pragma Singleton
      import QtQuick 6.5
      QtObject {
          signal xxxsignal();
          property bool keyBoardInfoVisible: true
      }

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            gwj 高 武杰
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes