Assign shortcut keys to buttons - Qt C++

前端 未结 4 2000
野趣味
野趣味 2021-01-31 18:17

I have created a GUI using Qt Creator. That is by drag and drop the widgets. Now I want to assign shortcut keys for all of the buttons. Can anyone here please let me know how to

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 18:58

    Alternatively, if the shortcut key corresponds to some character in the text of the button, you can preped & to that character. If you want a literal &, use &&.

提交回复
热议问题