You can definitely do custom paint event in QWidget. The only reason I decided 
to suggest QGraphics is  because when you start having a view with a huge 
number of QWidgets, it can get slow. This is because each QWidget individually 
manages a lot more of its own geometry and painting, where as QGraphicsScene 
has a much more efficient process for doing painting and overall management, 
with lighter weight objects.

I think, for instance, if I had tried to lay out my visual EDL diff application 
with QWidgets, the scrolling of the timelines would have been really slow, as 
each timeline could have 300-400 shot items, and you can have an arbitrary 
number of timelines. 


On Mar 14, 2013, at 6:31 PM, Judah Baron wrote:

> You could also derive from QWidget, which buys you a lot of canned 
> functionality. You can overload Qwidget's paint method and do whatever you 
> need.
> 
> On Wednesday, March 13, 2013, kosing-cg wrote:
> On Wednesday, 13 March 2013 16:37:27 UTC+8, Justin Israel  wrote:
> > You can do anything with QGraphics and painting :-)
> >
> > standard widgets only get you so far. You can also do painting in normal 
> > widgets.
> >
> > I did a visual EDL diff tool with qgraphics where it draws multiple 
> > timelines with clips and a play head.
> >
> >
> >
> > On Mar 13, 2013 5:28 PM, "kosing-cg" <[email protected]> wrote:
> >
> > Good day to all,
> >
> >
> >
> > I am finding a way to make a kind of clip represention like in trax editor, 
> > is this possible in PyQt? I looked at the widgets and seem nothing matches 
> > as what is in the trax editor. Is it possible in Qt?
> >
> >
> >
> > thanks a lot.
> >
> >
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups 
> > "Python Programming for Autodesk Maya" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> >
> > To post to this group, send email to [email protected].
> >
> > For more options, visit https://groups.google.com/groups/opt_out.
> 
> Thanks for the advice Justin, will look into the PyQtGraphics.
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to