Using actions in QML - best practice. How?



  • Hello all!

    I am trying to use in QML Actions at first time right now. I have issue: some functions should be available only if there are Ok for some rules. Like in pure CPP. The question is - what is the best practice to use Action{} in QML (not in CPP). How to connect it to JavaScript? Is there example of it?

    I couldn't find anything. I read the manuals, but I do not understand the principles of how it should be implemented in QML.


  • Moderators

    @bogong said in Using actions in QML - best practice. How?:

    Is there example of it?
    I couldn't find anything. I read the manuals, but I do not understand the principles of how it should be implemented in QML.

    then you should say what iss unclear for you about the docs?
    Buttons, menu items or the onTriggered slot should be used with Actions


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.