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 register singleton qml type using std::function as a callback?
Forum Update on Monday, May 27th 2025

How to register singleton qml type using std::function as a callback?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 310 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.
  • D Offline
    D Offline
    diredko
    wrote on 31 Mar 2017, 20:53 last edited by
    #1

    Hi All,

    Is there a way to register singleton qml type using std::function for a callback? if it is not, are there any particular reasons for not allowing this or it is just not implemented yet.
    In qt documentation I could only find qmlRegisterSingletonType variant which takes function pointer for a callback.

    Thanks))

    1 Reply Last reply
    0

    1/1

    31 Mar 2017, 20:53

    • Login

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