Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Qt4 的初学者,我想创建一个新插槽,但我不能(有人可以帮助我吗?谢谢 ;-)
插槽是普通的 C++ 函数,你只需要创建一个函数并正常调用它。
例如:
connect(openAction, SIGNAL(triggered()), this, SLOT(openFile()))
这里的插槽是openFile(),这是一个简单的方法。
openFile()