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 d_ptr and q_ptr stand for?
QtWS25 Last Chance

What d_ptr and q_ptr stand for?

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

    What d_ptr and q_ptr stand for exactly those can be found in many other qt source files(e.g. qobject.cpp)?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi!

      These are pointers used to implement the "Pimpl idiom" (= pointer to implementation idiom). See "Wikipedia":http://en.wikipedia.org/wiki/Opaque_pointer

      Cheers!

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gilgil
        wrote on last edited by
        #3

        Thank you, Wieland. ;)

        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