Questions tagged [d-pointer]

5 questions
7
votes
1 answer

What does "d" stand for in d-pointer?

Qt makes heavy use of the PIMPL idiom in their development process: https://wiki.qt.io/D-Pointer As I've read here: "The name 'd-pointer' stems from Trolltech's Arnt Gulbrandsen, who first introduced the technique into Qt, making it one of the first…
Jacob Krieg
  • 2,430
  • 10
  • 60
  • 114
5
votes
2 answers

does adding new member function into d pointer class break binary compatibility?

Will adding new member function into d pointer class definition break binary compatibility? For example, will the new definition below break binary compatibility compared to the original? (side question, is there a tool that will tell me if a new…
bob
  • 1,771
  • 4
  • 23
  • 36
2
votes
2 answers

Qt access D-Pointer of inherited Class

I am trying to understand how the whole d-pointer thing i working. I got most parts but I am currently facing a problem: Like the guy here Dpointer inheritance i want to inherit a class using d-pointers (infact it is QProcess). Since the function to…
user1723056
  • 33
  • 1
  • 3
1
vote
1 answer

D-pointer and composition classes in a shared library

I am creating a shared library in Qt5 C++. To allow future updates preserving the binary compatibility I would like to use the d-pointer technique. However, I don't know how to apply it when there is a composition of classes. The examples I've…
scopchanov
  • 6,933
  • 10
  • 30
  • 56
0
votes
1 answer

QExplicitlySharedPointer and inheritance

What is the best way to use QExplicitlySharedPointer and inherited classes. I would like when the BaseClass exits on it's own to have a my d pointer be QExplicitlySharedPointer and when I have a Derived class on top of this base…
Timothy Baldridge
  • 10,339
  • 1
  • 38
  • 72