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

setProperty does not refresh immediatly with QString (?) as input value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.0.0
    • Quick: Controls 2
    • None
    • All

    Description

      Using qml engine from nelson language, I want to create a message box:

      a=msgbox('fdddddddddddddd')
      a =

      [QObject] - size: 1x1

      buttons: QFlags<QPlatformDialogHelper::StandardButton>
      children: handle 1x1
      className: QQuickPlatformMessageDialog
      detailedText: QString
      flags: QFlags<Qt::WindowType>
      informativeText: QString
      modality: Qt::WindowModality WindowModal
      objectName: QString
      parentWindow: QWindow* handle
      result: int 0
      text: QString fdddddddddddddd
      title: QString '
      visible: bool true

      --> a.text='blabla'
      --> a.text

      'blabla'

      BUT text of the message box is not updated (display is always 'fdddddddddddddd').
      To be updated, It requires to force visibility
      a.visible = false; a.visible = true

      a.text = 'blabla' as a.visible = true
      do in C++ code :
      qobj->setProperty(wstring_to_utf8(propertyName).c_str(), v)
      with v a QVariant v = QString('blabla')

      Please notice that it works perfectly in Qt 5 on all platforms (linux, macos, windows)

      Help will be appreciate

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nelson.numerical Allan CORNET
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes