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

changing visible property for keys breaks the Layout.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.3
    • 5.6.1
    • Virtual Keyboard
    • None
    • Behavior is producible on Qt 5.6.1-1 with QtVirtualKeyboard branch 5.6

      Behavior is producible on different targets and all hosts.
    • 13a199e6e2c5f27b0f12eff380df4f0c0d156e6e

    Description

      Changing visibility of buttons from layouts file, like ChangeLanguageKey or HandwritingModeKey results corrupted layouts.

      My project requirements: is ChangeLanguageKey shall not be visible if there's only one language (i.e. canChangeInputLanguage shall return false)

      and I controlled active layouts using VirtualKeyboardSettings, it corrupts the whole layout.

      Also I've suffered the same bug, with setting Hand Writing button as well.

      For simplicity you can run this code inside the vanilla and see:
      in file: ChangeLanguageKey.qml

      Add the following code to the bottom:

          visible: enabled
          id: testChangeLangKey
      
      
          Component.onCompleted:
          { hideChangeLangKeyTmr.start(); }
      
      
          Timer
          {
              id: hideChangeLangKeyTmr
              interval: 5000
              onTriggered: testChangeLangKey.visible = true;
          }
      

      Attachments

        1. corruptedLayout.jpg
          corruptedLayout.jpg
          4.11 MB
        2. qtbug54953.patch
          0.5 kB
        3. untitled4.zip
          3 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-54953
          # Subject Branch Project Status CR V

          Activity

            People

              mitch_curtis Mitch Curtis
              bassem.mohsen Bassem Mohsen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes