Qt Forum

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

    Call for Presentations - Qt World Summit

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

    General and Desktop
    2
    3
    1039
    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.
    • P
      Peppy last edited by

      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 Reply Quote 0
      • M
        MuldeR last edited by

        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 Reply Quote 0
        • P
          Peppy last edited by

          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 Reply Quote 0
          • First post
            Last post