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. Connecting signal/slot with unsupported parameter in QML
Forum Update on Monday, May 27th 2025

Connecting signal/slot with unsupported parameter in QML

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 369 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.
  • _antipattern__ Offline
    _antipattern__ Offline
    _antipattern_
    wrote on last edited by
    #1

    Hi,

    I have a signal and a slot (Q_INVOKABLE write accessor of a property) with the type 'QList<QPair<QString, QString>>'. I have an object object of both sender and receiver available in QML and tried to connect them like so:

    sender.signal.connect(receiver.slot);
    

    When the signal is emitted I get this error:
    '<Unknown File>: Error: Unknown method parameter type: QList<QPair<QString,QString> >'
    I do realize that the parameter is not supported by QML but I thought creating the connection in QML would be possible nontheless. Is there something I can do to create the connection?

    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