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. QML slot to static signal ?
Forum Updated to NodeBB v4.3 + New Features

QML slot to static signal ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 277 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I have a static signal in a class, when an invalid data tag is bad or doesn't exist, then the static method that is used to perform the look up emits the signal which is defined in the class as:

    signals:
        void interface(bool blnState_);
        static void invalid();
        void staleStatus(bool blnState_);
        void toolTip(QString strToolTip_);
    

    I want to have a slot in the QML that handles this, is it possible and how would I define it ?

    Kind Regards,
    Sy

    SPlattenS 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I have a static signal in a class, when an invalid data tag is bad or doesn't exist, then the static method that is used to perform the look up emits the signal which is defined in the class as:

      signals:
          void interface(bool blnState_);
          static void invalid();
          void staleStatus(bool blnState_);
          void toolTip(QString strToolTip_);
      

      I want to have a slot in the QML that handles this, is it possible and how would I define it ?

      SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #2

      @SPlatten , Sorted, added static instance of the class then emitted from that member.

      Kind Regards,
      Sy

      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