It helps because you are now giving it the argument type that it is expecting rather than the argument type that it is not expecting.Quote:
Originally Posted by ToddAtWSU
No, that de-references the pointer. See any docs on C/C++ to see the meaning of the '*' operator.Quote:
To me that turns the pointer into a pointer to a pointer
The function wants a reference to a QPixmap object, nothing more. Whether that means de-referencing your variable depends on what kind of object you are dealing with, a QPixmap or a 'pointer to QPixmap'. The following should show you how to correctly deal with both cases.Quote:
I thought the function wanted my argument de-referenced, but I guess not.
Example 1 - QPixmap allocated on the stack.
Example 2 - QPixmap allocated on the heap.
Code:
... mpVideoPainter->drawPixmap( target, *mpOverlay, source );