Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
QPointer is a Qt class to hold a pointer. Such a class is called a smart pointer, yet -in my humble opinion- QPointer behaves unexpectedly.
Prefer to use smart pointers over normal pointers [1].
#include <cassert> |
Screen output:
~Test |
Expected screen output:
42 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.