C++ Qt signal and slot not firing

前端 未结 3 1622
慢半拍i
慢半拍i 2020-11-27 08:23

I am having difficulty in my Qt program with connecting button signals to my slots. My code is:

Main.cpp

#include 
#include         


        
3条回答
  •  长情又很酷
    2020-11-27 09:00

    Edited:

    Compiled your code and all the slots were correctly called. It was just the Q_OBJECT macro that was missing.

提交回复
热议问题