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. What is the actual use of connectNotify and bool QApplication::notify ?
Forum Updated to NodeBB v4.3 + New Features

What is the actual use of connectNotify and bool QApplication::notify ?

Scheduled Pinned Locked Moved General and Desktop
22 Posts 8 Posters 10.4k 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.
  • T Offline
    T Offline
    tuvix
    wrote on last edited by
    #21

    Ok, this is very useful example.
    This does help to make it clear. Thank you for the valuable help. I think I see the idea now.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hareen Laks
      wrote on last edited by
      #22

      I had the same question when I read this.

      I understand connectNotify() and disconnectNotify () as below.

      MyClass.h

      'void connectNotify(const char *signal);'

      MyClass.cpp

      'void MyClass::connectNotify(const char *signal)
      {
      //find the signal connected as in documentation
      if (signal == QMetaMethod::fromSignal(&MyObject::valueChanged)) {
      // signal is valueChanged
      }
      }'

      Is this correct?

      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