Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using actions in QML - best practice. How?
Forum Updated to NodeBB v4.3 + New Features

Using actions in QML - best practice. How?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 324 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    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.

    raven-worxR 1 Reply Last reply
    0
    • B bogong

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved