Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    What d_ptr and q_ptr stand for?

    General and Desktop
    2
    3
    988
    Loading More Posts
    • 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
      gilgil last edited by

      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 Reply Quote 0
      • ?
        A Former User last edited by

        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 Reply Quote 0
        • G
          gilgil last edited by

          Thank you, Wieland. ;)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post