I wrote a program in Qt to capture video streams and display them. Now I want to realize the function of collecting a picture by pressing the button. Where do I define the custom button function? How do I call this function in other functions? Thanks in advance！
Qt is a 3rd party frameworks. Other users may share their experience.