Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How do I safely call methods from another object?
Forum Updated to NodeBB v4.3 + New Features

How do I safely call methods from another object?

Scheduled Pinned Locked Moved Unsolved C++ Gurus
21 Posts 4 Posters 5.3k 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.
  • J.HilkJ J.Hilk

    @jsulm possible, we simply don't know enough of the actual code to say for sure.

    However, am I wrong here, or is "xxxx not decleared in the scope error " not usually a sign of missing includes ?
    I tried to use connect on a null pointer recently.
    It compiled, it run, it did not crash, I only got a warning " cannot connect to nullptr".

    More infos needed!

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #21

    @J.Hilk

    connect((QObject*)sender, SIGNAL(newNodeAdded()), this, SLOT(onRefreshnodeClicked()));
    

    "sender not decleared in the scope"

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    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