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] QtInternals: Using D-pointer in custom classes?

[SOLVED] QtInternals: Using D-pointer in custom classes?

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

    Hello guys, I want to ask you, wether it is possible to use Qt's internal "framework" of managing Pimpl (I mean using macros: Q_Q, Q_D), or I have to create my own (which won't collide with Qt's one)?

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

      I think that using these macros "as is" (i.e. you don't re-define them) for your own classes will not "collide" with Qt's code. But you have to be aware that anything that is not part of the "public" Qt API, but only used internally, might be subject to change in future versions without notice or taking care of backward compatibility.

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        Yea, but I have realised that it's almost impossible to use internals headers (QWidgetData) so there is only one way to do it - custom implementation. (QED).

        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