On Tue, Sep 26, 2017 at 1:06 AM Daniel Springall < [email protected]> wrote:
> I am now trying, and failing, to create a second view pointing at the same > model, in this instance some sort of list view with a flow layout, that > will be populated with the thumbnails for each item. This way I can toggle > between views and maintain item selection/filtering between them. > > I was able to create a window that had a flowLayout and I then populated > it by iterating over the items in my data set and for each item generated a > QWidget that housed the icon as well as a label for the name of the item. > But this wasn’t (unless I am miss-understanding PyQt) pointing at my model > to make it so that if I updated my model or used a QFilterProxyModel the > windows/widgets wouldn’t stay in sync. > Is it your goal to create the new custom view yourself, or are you just looking for a solution to this? Have you tried using a QListView that is set to a left-to-right flow mode, and icon mode? That sounds like what you are after. Otherwise you would need to subclass QAbstractItemView and implement the right methods in order to draw or layout your items according to what the model is telling you. > > As I am relatively new to PyQt I’m not sure if I’m just using the wrong > tool for the job, or completely missing something… Any help or insight is > greatly appreciated. > > > Thanks, > > Daniel > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/b9a18cac-728a-4b4c-81fd-e5e80bae34b2%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/b9a18cac-728a-4b4c-81fd-e5e80bae34b2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1NWe2U-rZjAATTT3F8WC1zZi5Vzn8%3D2%3DxkYEZmzqEq3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
