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. [SOLVED] Meaning of Q_D in Qt source code
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Meaning of Q_D in Qt source code

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.0k Views 1 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.
  • K Offline
    K Offline
    Karen
    wrote on last edited by Karen
    #1

    Searched the web site for this code (from Qt 5.4.1 source code), and couldn't find any information:

    Q_D(QXmlStreamReader);
    

    What does Q_D mean?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Qt uses the pimpl pattern in source code.
      Each class define a Private class that hide the private part of a class in the header files.
      Q_D is a macro used to create/manage this private implementation.

      IIRC in the wiki there's an article related to this topic

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #3

        hi, the article is here

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        K 1 Reply Last reply
        1
        • M mcosta

          hi, the article is here

          K Offline
          K Offline
          Karen
          wrote on last edited by
          #4

          @mcosta Thank you. The provided link gave a good instro on this.

          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