- Qt 5 and OpenCV 4 Computer Vision Projects
- Zhuo Qingliang
- 136字
- 2021-06-24 13:59:16
Implementing the functions for the actions
In the previous section, we added several actions to the menu and toolbar. However, if we click on these actions, nothing happens. That's because we have not written any handler for them yet. Qt uses a signal and slot connection mechanism to establish the relationship between events and their handlers. When users perform an operation on a widget, a signal of that widget will be emitted. Then, Qt will ascertain whether there is any slot connected with that signal. The slot will be called if it is found. In this section, we will create slots for the actions we have created in the preceding sections and make connections between the signals of the actions to these slots respectively. Also, we will set up some hotkeys for frequently used actions.
- Kali Linux Web Penetration Testing Cookbook
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- Ext JS Data-driven Application Design
- Mastering Spring MVC 4
- Learning AWS Lumberyard Game Development
- Java深入解析:透析Java本質的36個話題
- Apache Karaf Cookbook
- Python機器學習經典實例
- Python:Master the Art of Design Patterns
- 學Python也可以這么有趣
- 青少年信息學競賽
- Instant Nancy Web Development
- Mastering Business Intelligence with MicroStrategy
- Android群英傳
- Arduino可穿戴設備開發