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. Controlling onclicked event in a qml file from a different layer
Forum Updated to NodeBB v4.3 + New Features

Controlling onclicked event in a qml file from a different layer

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 717 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.
  • S Offline
    S Offline
    SKMahata
    wrote on last edited by
    #1

    Hello,
    In my qml file I have an onclicked event. As we know it is executed whenever we click on the screen but I want to control this event from a different layer i.e HMI Layer through C++ code. Can anyone help me out with this query?
    I am doing all these codes in Qt creator 5.2.0 MSVC 2010.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      morte
      wrote on last edited by
      #2

      On C++ side you can handle QML signals, check documentation section "Interacting with QML Objects from C++".

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SKMahata
        wrote on last edited by
        #3

        Thanks for the suggestion morte. Will check and get back for any doubts. :-)

        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