Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
494 views
in Technique[技术] by (71.8m points)

c++ - Why are none of my actions showing up in the Action Editor?

I am working with QT framework and have encountered a problem where none of my actions are being displayed in the Action Editor. I have many buttons and I can edit my actions in the action slots and my code so I know that I have actions in the project, but there are none in the Action Editor. This really limits what I can do since I can't find a way to add icons to my buttons without using the Action Editor. Does anyone know what the problem is?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you are talking about Qt Widgets Application:

You have to right click on the button, press Go to slot, and create your function, action, or whatever you want.

You can use Signals/Slots too, when a button is clicked, send and signal to a slot ( theoretically).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...