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

The Qlist container element in the Qt-made custom control will be cleared at runtime.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: Tools: Designer
    • Labels:
      None
    • Environment:
      windows10 64位.

      Description

      Make a custom control. Using the Qlist container, after dragging out the control on the UI, adding elements to the Qlist is normal on the UI. After running, the elements inside are reset.

       I made a bug reproduction video and uploaded it to youtube.
      BugVideo
       

       

      制作了一个自定义控件,继承pushbutton,新建了一个Qlist<WatchType>mWatchType;
      在使用控件时,在UI中拖出myButton 添加Qlist mWathchType 元素.程序运行后,添加的元素,只有当前显示的元素,还保留着,其它元素都被重置.
      附件中有自定义控件的源码.

        Attachments

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

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            wenjun jun wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes