qt的一个小问题
本人初学qt,看tutorials有一处没看懂
Click on "Type Here", and add the options New, Open, Save, Save as, Print and Exit. This creates 5 lines in the Action Editor below[u]. To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
If we also want to add the actions to a toolbar, we can assign an icon to each QAction, and then drag the QAction to the toolbar. You assign an icon by entering an icon name in the Icon property of the action concerned. When the QAction has been dragged to the toolbar, clicking the icon will launch the associated slot.
Complete the method on_actionNew_triggered() :
To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
这一段,求解这处是怎么操作?
tutorials地址:http://doc.qt.io/qt-5/gettingstartedqt.html