Using the memory address of the QVariant that acts as buffer is bad. While we got
lucky with Qt4, and this worked by accident, it leads to subtle and not-so-subtle segfaults
when used with Qt5.
Instead, using QVariant::data() makes sure that implicitly shared data is properly detached.