How to add short-key for “Add Definition in class.cpp” in Qt Creator

How to add short-key for “Add Definition in class.cpp” in Qt Creator

Asked on January 21, 2019 in Qt.
Add Comment


  • 6 Answer(s)

    Add  the short-key to Add Definition in class.cpp in Qt Creator:

      By using the  Alt+return and  click   the selected function to press the menu item and   another solution is macro .

    Answered on January 21, 2019.
    Add Comment

    You can Alt+return click on the selected function and then press the menu item that appears, there might be another solution with a macro or something

    Answered on January 24, 2019.
    Add Comment

    When you define a member function in a class Interface in Qt creator you can right click on the function prototype and select Refactor->Add Definition in YouClass.cpp . But this will be really handy If you can set a shortcut for it. I couldn’t find it in options->shortcut section. enter image description here

    For example in Visual Assist you can press ALT+SHIFT+Q.
    You can Alt+return click on the selected function and then press the menu item that appears, there might be another solution with a macro or something

    Answered on January 27, 2019.
    Add Comment

    You can press Alt+Enter to open a context menu that contains refactoring actions available in the current cursor position.

    Answered on February 3, 2019.
    Add Comment

    std::shared_ptr<CameraGrabber> camera() const; void setCamera(const std::shared_ptr<CameraGrabber>& camera); private: std::shared_ptr<CameraGrabber> m_camera;

    Answered on February 5, 2019.
    Add Comment

    You can press Alt+Enter to open a context menu that contains refactoring actions available in the current cursor position.

    Answered on February 20, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.