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. Does it make any difference using public slot or private slot?
Forum Update on Monday, May 27th 2025

Does it make any difference using public slot or private slot?

Scheduled Pinned Locked Moved Solved General and Desktop
qt5slot
3 Posts 2 Posters 438 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
    deleted286
    wrote on last edited by
    #1

    In C++, public means those members that are accessible from anywhere where the object is visible, private means that members are accessible only from within other members of the same class or from their friends.

    In Qt, what is the difference between them?

    jsulmJ 1 Reply Last reply
    0
    • D deleted286

      In C++, public means those members that are accessible from anywhere where the object is visible, private means that members are accessible only from within other members of the same class or from their friends.

      In Qt, what is the difference between them?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @suslucoder said in Does it make any difference using public slot or private slot?:

      In Qt, what is the difference between them?

      There is no difference.
      A slot is a C++ method, so the same rules apply...

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

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @suslucoder said in Does it make any difference using public slot or private slot?:

        In Qt, what is the difference between them?

        There is no difference.
        A slot is a C++ method, so the same rules apply...

        D Offline
        D Offline
        deleted286
        wrote on last edited by
        #3

        @jsulm Thank you

        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