PDA

View Full Version : relative position



franco.amato
8th December 2009, 09:16
Hi,
how can I get the position of a QRubberBand resative to its parent?

Best Regards,
Franco

wysota
8th December 2009, 10:21
QWidget::mapToGlobal(), QWidget::mapFromGlobal() if all elses fail, but first try just QWidget::pos() and QWidget::geometry()

franco.amato
8th December 2009, 18:08
QWidget::mapToGlobal(), QWidget::mapFromGlobal() if all elses fail, but first try just QWidget::pos() and QWidget::geometry()


Thank you. I got it with QWidget::geometry()

Best