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 is q_d?
Forum Updated to NodeBB v4.3 + New Features

what is q_d?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 892 Views 2 Watching
  • 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.
  • U Offline
    U Offline
    user4592357
    wrote on last edited by
    #1

    in qt sources i've seen the (i guess) macro Q_D.

    i have heard about the private classes and the q and d pointers.
    but what exactly does Q_D do?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      its part of pimpl pattern design to hide implementation.
      It basically give access to private classes and is a design for handling it via a
      pointer (type)

      https://wiki.qt.io/D-Pointer

      1 Reply Last reply
      6

      • Login

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