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 does the constant mean in a function member like this?
Forum Updated to NodeBB v4.3 + New Features

What does the constant mean in a function member like this?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 287 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.
  • B Offline
    B Offline
    bartvrossum
    wrote on last edited by bartvrossum
    #1

    Hi, was wondering this. What does this const here mean? Why is it after the function?

    0_1562781472987_Screenshot 2019-07-10 at 19.57.04.png

    Thanks.

    aha_1980A 1 Reply Last reply
    0
    • B bartvrossum

      Hi, was wondering this. What does this const here mean? Why is it after the function?

      0_1562781472987_Screenshot 2019-07-10 at 19.57.04.png

      Thanks.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @bartvrossum it means, that this member function does not modify (member data of) its object.

      But that is basic C++ ...

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • B Offline
        B Offline
        bartvrossum
        wrote on last edited by
        #3
        This post is deleted!
        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