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. Name 'target' in QML Connections confusing
Forum Updated to NodeBB v4.3 + New Features

Name 'target' in QML Connections confusing

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 165 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
    DanRechtsaf
    wrote last edited by
    #1

    Hi,

    Is it just me or is the name 'target' in the QML Connections Type really confusing? I would have called it 'source' since it indicates "the object that sends the signal" - so the source object of the signal.

    What is the rationale for the name 'target'?
    Gr,
    Daan

    1 Reply Last reply
    0
    • J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote last edited by
      #2

      My professional guess is that Connections is specifically designed to reference a QtObject or null, ensuring type safety and clarity in signal connections.
      Source is a more generic term in QML, commonly used for properties like Image.source or Component.source, which refer to the data or component being displayed or instantiated.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      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