[Qt-interest] QGraphicsScene pos

Paolino Marmolaro paolino.marmolaro at gmail.com
Tue Oct 26 11:44:36 CEST 2010


Of course!
thanks again.
pm



2010/10/26 Andre Somers <andre at familiesomers.nl>:
> Op Di, 26 oktober, 2010 11:28 am, schreef pmqt71:
>> Ok, thanks a lot.
>>
>> I actually was expecting this behaviour without calling any fitInView
>> method.
>>
>> Just another question:
>>
>> I have the QRectF  -50.0, -50.0, 50.0, 50.0
>>
>> the width is 50??
>>
>> qDebug() << "width=" << rect.width();  //returns 50
>
> Of course it is! As the documentation states, that QRectF constructor
> takes the width and the height as the third and fourth parameter. If you
> want to use points instead, then use QRectF(QPointF(-50.0, -50.0),
> QPointF(50.0, 50.0));
>
> André
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list