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 13 Jan 2021, 07:50 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?

    J 1 Reply Last reply 13 Jan 2021, 07:51
    0
    • D deleted286
      13 Jan 2021, 07:50

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Jan 2021, 07:51 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 13 Jan 2021, 07:51
      0
      • J jsulm
        13 Jan 2021, 07:51

        @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 13 Jan 2021, 07:51 last edited by
        #3

        @jsulm Thank you

        1 Reply Last reply
        0

        1/3

        13 Jan 2021, 07:50

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved