olidem
3rd March 2009, 10:14
Hi,
I have a basic general question.
Most QT functions are called by reference, eg.
QRectF::contains(QPointF & pt)
On the other hand, many functions return eg. just a QPointF,
QPointF QGraphicsItem::mapToScene()
How can I combine these arguments in an elegant way without havin to create an intermediate local variable ?
Tanks for your hints in advance!
Olli
I have a basic general question.
Most QT functions are called by reference, eg.
QRectF::contains(QPointF & pt)
On the other hand, many functions return eg. just a QPointF,
QPointF QGraphicsItem::mapToScene()
How can I combine these arguments in an elegant way without havin to create an intermediate local variable ?
Tanks for your hints in advance!
Olli