[Qt] Inverted cursor position on Mac
Den Jean
Den.Jean at telenet.be
Tue Jul 3 21:46:04 CEST 2007
On Tuesday 03 July 2007 09:28:59 pm Felipe Monteiro de Carvalho wrote:
> What are you doing with the Qt data structures? Are you just casting
> them to pascal structures?
typedef void *PRect;
inline void copyQRectToPRect(const QRect &qr, PRect pr)
{
*(QRect *)pr = qr;
((QRect *)pr)->setRight(((QRect *)pr)->right()+1);
((QRect *)pr)->setBottom(((QRect *)pr)->bottom()+1);
}
inline void copyPRectToQRect(PRect pr, QRect &qr)
{
qr = *(QRect *)pr;
qr.setRight(qr.right()-1);
qr.setBottom(qr.bottom()-1);
}
I can fix it here. Should I leave the VCL/CLX alike
growing with one ?
regards,
Den Jean
More information about the Qt
mailing list