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

d_ptr

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

    Hi
    I want to implement the d_ptr pattern in my classes
    Is it OK to use the Q_DECLARE_PRIVATE macro as I believe it is undocumented and private to Qt

    Thanks for your time

    JKSHJ 1 Reply Last reply
    0
    • G GrahamL

      Hi
      I want to implement the d_ptr pattern in my classes
      Is it OK to use the Q_DECLARE_PRIVATE macro as I believe it is undocumented and private to Qt

      Thanks for your time

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      @GrahamL said:

      I want to implement the d_ptr pattern in my classes
      Is it OK to use the Q_DECLARE_PRIVATE macro as I believe it is undocumented and private to Qt

      It is best not to use private things from Qt, because they might change between versions.

      You don't need that macro to implement your own d-pointers.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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