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 5, to create a menu bar.
Widget is to manage the entire menu.
In line 7, the menu bar "File" and add a pop-up menu.
9 from the line, "File" pop-up menu called "Exit" menu item to add it.
The past, MFC in the same way as the ID was to manage and, now, is to manage action items.
But it is no longer ID, this is to manage action items along with the flow.
From MFC, VCL or feel close to you.
VCL using C + + but I did like this.
Line 13, the menu "Exit" when I click on, qApp of "closeAllWindows" I have to start the method declaration.
In other words, defines a Command Signal and its corresponding slot.
Line 15, the pop-up menu "File" when you see the object (this) of "updateMenus" I have to start the method declaration.
In other words, defines the slot and its corresponding Update Signal.
The qApp, MFC within-AfxGetApp () is similar.
MFC is not the only CWinApp CWinApp or after generation inherited objects, objects取RI出SEMASEN correctly.
Qt is the same.
It corresponds to the QApplication.
Without this reality, qApp is empty.
Follows in the main, the first of which creates a QApplication is also for that.
23 from the line, pop-up menu "File" menu item is displayed each time the "Exit" to disable and enable the toggle switch.
Here, I think the explanation is not required.
Create a simple application, just make the screen display.
Now, let's run.
The following menu, "Exit" I think every time you see the switch disabled.
Definition of each signal, so all are included in the reference class is good in there.
Most of the necessary signals, and we are aligned.
Can easily be created as described above if the individual signals.
Leave a Reply