So I checked on my MainWindow.
所以我检查我的主窗口。
Select Tab bar controller in the MainWindow component window.
在MainWindow组件窗口中选择Tabbarcontroller。
We create a NoteBook widget as child to the MainWindow and then add three tabs.
我们创建一个NoteBook窗口小部件作为MainWindow的子窗口,然后添加三个标签。
The next step has created a Canvas widget and had it fill the entire MainWindow.
下一步是创建画布部件并使之充满整个主窗口。
In my application, I create a new thread which creates an instance of MainWindow.
在我的应用程序中,我创建了一个新线程,创建主窗口的一个实例。
Next, we've created Label and Button objects as child widgets inside the MainWindow.
下一步,我们将在这个主窗口中创建标签和按钮对象,作为主窗口的子部件。
Here we've created a MainWindow as before and configured it to be $size pixels wide and high.
在这个程序中,和前一程序一样,首先创建一个主窗口,并且设置窗口的宽和高为 $size像素。
I thought that this was odd, as when I was working on my MainWindow it was working just fine.
我认为这是奇怪的,因为当我工作在主窗口工作只是罚款。
Each widget (except for top-level ones, such as MainWindow) must be the child of exactly one parent.
每个部件(除了顶层部件外,比如主窗口)必须是某个确切父部件的子部件。
Each widget (except for top-level ones, such as MainWindow) must be the child of exactly one parent.
每个部件(除了顶层部件外,比如主窗口)必须是某个确切父部件的子部件。
应用推荐