Public bug reported:

I copied the code snippet at
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Captions/,
and I made an example at https://github.com/liu-xiao-guo/captions

If the code is like:


                Captions {
                    title.text: "Caption1"
                    subtitle.text: "Subtitle text 1111111111111111111"
                    // attached properties of an Item type property
                    // can be changed only with assignment
                    Component.onCompleted: subtitle.Layout.alignment = 
Qt.AlignRight
                }


The app crashes, however, if I change the above code to:

                Captions {
                    title.text: "Caption1"
                    subtitle.text: "Subtitle text"
                    // attached properties of an Item type property
                    // can be changed only with assignment
                    Component.onCompleted: subtitle.Layout.alignment = 
Qt.AlignRight
                }

Then the app does not crash any more.

Best regards,
XiaoGuo

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1561814

Title:
  application crashes if subtitle.text of Captions is too long

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1561814/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to