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. Application is getting closed while emitting signal in QML file
Forum Updated to NodeBB v4.3 + New Features

Application is getting closed while emitting signal in QML file

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 99 Views
  • 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
    balakrishnarao.ms
    wrote on last edited by
    #1

    I am using Qt 6.5.3 version
    I have defined a signal in singleton QML file (XYZ.qml) as,
    signal sendData() (in qmldir file created name as singleton moon 1.0 XYZ.qml)

    and I have emitting signal in ABC.qml as
    moon.sendData(), when button is clicked and connecting this signal in component.oncompleted as
    Component.onCompleted:
    {
    moon.sendData.connect(receiveData)
    }

    created a slot in same ABC.qml as
    function receiveData()
    {
    console.log("Received Signal")
    }

    Signal is emitted when button is clicked in ABC.qml. But as when button is clicked application is getting closed.

    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