As part of the lazy loading strategy, when an organizational TreeItem widget is created, you don't have the data to create all of its child widgets.
按照惰性装载策略,在创建组织TreeIte m部件时,还没有创建所有子部件所需的数据。
This widget is a simple composite that allows its child to be shown or hidden (i.e., collapsed or expanded).
这个小部件是一个简单的复合程序,允许显示或隐藏(即,折叠或展开)其子元素。
To work around this limitation, I created a dummy child TreeItem widget and set it to be invisible (lines 39, 40).
为了解决这个问题,我创建了一个假的子TreeItem部件并把它设置为不可见(第 39、40行)。
We create a NoteBook widget as child to the MainWindow and then add three tabs.
我们创建一个NoteBook窗口小部件作为MainWindow的子窗口,然后添加三个标签。
Each widget (except for top-level ones, such as MainWindow) must be the child of exactly one parent.
每个部件(除了顶层部件外,比如主窗口)必须是某个确切父部件的子部件。
I recommend you start with one of the tutorials. Look in particular here to see how you make a widget a child of another widget.
我建议你开始的教程。在特定的在这里看看你小部件的孩子另一个小部件。
Look in particular here to see how you make a widget a child of another widget.
在特定的在这里看看你小部件的孩子另一个小部件。
Look in particular here to see how you make a widget a child of another widget.
在特定的在这里看看你小部件的孩子另一个小部件。
应用推荐