How to connect menu click with action in Qt Creator? -


i new qt.

i started new qt4 gui application.

using designer, have created menu so:

file  - exit 

how action associated menu item?

i found called 'signals , slots editor' have no idea how use it.

click on green plus sign after selected signals slots editor. give 4 fields fill in. sender select creating signal. example actionexit might name created exit menu item. signal going clicked(). receiver class created has of methods. slot method created in class want execute. example:

actionexit clicked() <nameofclass> exitgame() 

hope helps.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -