Dear visitor who can read English
This page is a page translated automatically by Google AJAX Language API.
Please comment to this page if you could not understand. A PERSON will review this page .
I think that you will be able to understand this page later. Please give a little time to us.
Best regards,
This site is support & information site of WEB,and Software. This site might help you that create software or Web Site…perhaps?[:]
In line 11, from the "pushButton" from the name you will find a widget that QPushButton objects.
QPushButton find the signal "clicked", slot "closeAllWindows" is assigned.
In fact, please click Run.
Close the screen, I was finished.
Thus, if the signals and slots that already exist, so the screen image to QtDesigner can easily create and control.
However, in most cases is to define a separate slot.
When doing so, you must use the metabase.
In order to use moc, have a right to recognize inherited class, I'll have separate header and class.
So, QWidget create an inherited class, we have a separate slot.
The sample files in the same way as the previous article to prepare.
Line 15 is defined in the slot.
Please note the name.
"on_widge namet_Signal name" Note that you must have.
Slot name, QtDesigner can also be specified, and if anything not specified in the law of the above, you can define a default slot.
By definition, connect will have to describe the process better.
6 in line, Like when we used to direct the class was created automatically on the screen and then paste the widget QtDesigne defined.
12 from the line is in operation when the button is clicked.
This is to display a message box.
Here, I think the explanation is not required.
Create a simple application, just make the screen display.
Now, let's run.
As follows: I think the message box.
Here is a simple inheritance is used, Ui:: Form can not be the same as multiple inheritance at the same time.
Or as an attribute of the original inheritance (parent) or a difference.
Leave a Reply