[Qt-interest] (QWidget *) arriving through QGraphicsItem::paint(...) is not the (QGraphicsView *) expected
Sherif Ghali
sherif.ghali.1 at gmail.com
Sun Jul 17 00:24:03 CEST 2011
On Sat, Jul 16, 2011 at 3:24 PM, Giuseppe D'Angelo <dangelog at gmail.com> wrote:
>
> The third argument should actually be the viewport() of your QGraphicsView.
> Did you check if its _parent_ is the instance of your QGraphicsView subclass?
>
> --
> Giuseppe D'Angelo
>
That's exactly it. Thank you. That also fits well with the indirection
necessary for choosing the viewport, an indirection that is incurred
regardless of whether one is painting on a glwidget.
Sherif
More information about the Qt-interest-old
mailing list