Re: [Maya-Python] I have questions about the QListView interaction

2018-11-26 Thread Justin Israel
On Mon, Nov 26, 2018, 8:50 PM Eri wrote: > > I did a simple test, don't know if this is the case? > https://gist.github.com/EriLee/c0ddfe6f159a373fcb89d6f460f8f8d3 > > But if you find a problem, there will be a case where BasicWidget() is > multiple instances, so that it doesn‘t increase the

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Eri
I did a simple test, don't know if this is the case? https://gist.github.com/EriLee/c0ddfe6f159a373fcb89d6f460f8f8d3 But if you find a problem, there will be a case where BasicWidget() is multiple instances, so that it doesn‘t increase the load? Is there any other way? 在 2018年11月26日星期一

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Eri
OK,I tried QGraphicsScene. Thanks! 在 2018年11月26日星期一 UTC+8下午12:05:06,Justin Israel写道: > > > > On Mon, Nov 26, 2018 at 4:57 PM Eri > > wrote: > >> What you mean is that the performance of using custom QGraphicsScene is >> even higher?How to customize QGraphicsScene? >> > > QGraphicsScene is a

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Justin Israel
On Mon, Nov 26, 2018 at 4:57 PM Eri wrote: > What you mean is that the performance of using custom QGraphicsScene is > even higher?How to customize QGraphicsScene? > QGraphicsScene is a more efficient way to do complex interfaces. You get better performance using it than with QWidget because

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Eri
What you mean is that the performance of using custom QGraphicsScene is even higher?How to customize QGraphicsScene? 在 2018年11月26日星期一 UTC+8上午11:49:23,Justin Israel写道: > > > > On Mon, Nov 26, 2018 at 4:00 PM Eri > > wrote: > >> 100 items, each of which item about 10-20 fields. 15 custom wigets

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Justin Israel
On Mon, Nov 26, 2018 at 4:00 PM Eri wrote: > 100 items, each of which item about 10-20 fields. 15 custom wigets in item > Well you could try the QVBoxLayout managed approach. QList{View,Widget} won't be the right one anyways for dynamic widget items. Its either that or a custom QGraphicsScene

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Eri
100 items, each of which item about 10-20 fields. 15 custom wigets in item 在 2018年11月26日星期一 UTC+8上午10:42:32,Justin Israel写道: > > > > On Mon, Nov 26, 2018 at 2:57 PM Eri > > wrote: > >> >> >> Hey all, >> >> Here I got some questions about PyQT need consult with you.We are doing >> some UI

Re: [Maya-Python] I have questions about the QListView interaction

2018-11-25 Thread Justin Israel
On Mon, Nov 26, 2018 at 2:57 PM Eri wrote: > > > Hey all, > > Here I got some questions about PyQT need consult with you.We are doing > some UI development but met difficulties. > 1. In the last version we were using > QListView+QStyledItemDelegate+QAbstractListModel as the code to load the >