Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use a signal on QML side
Forum Updated to NodeBB v4.3 + New Features

How to use a signal on QML side

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 92 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.
  • serkan_trS Offline
    serkan_trS Offline
    serkan_tr
    wrote on last edited by
    #1

    I have a class in C++ side and I have passed this class to QML with qmlRegisterType. C++ class triggers a certain signal, how do I detect this trigger by QML
    C++

        Q_PROPERTY(int pitch READ pitch WRITE setPitch NOTIFY pitchChanged)
    .
    .
    .
    

    QML

        MainRos{
            id:main_ros
            objectName: "main_ros_qml"
        }
        Connections{
                target:main_ros 
                pitchChanged: {
                    console.log("Camera slider value changed:", value);
                }
            }
    

    this code is not working.

    1 Reply Last reply
    0
    • serkan_trS serkan_tr has marked this topic as solved on

    • Login

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