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 <td.e...@gmail.com <javascript:>> 
> 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 
>> items and these items include lots of custom widgets and the user need do 
>> interaction by using these widets. But the widgets cannot interact when 
>> they are displayed by the QlistView.We read the QT documentation and it 
>> seems like the QListView could only do previw for the viewer while cannot 
>> do interaction,not sure is this correct?
>>
>
> This sounds correct to me. It is documented that you can only expect to 
> display static widgets in the list view, since they are painted directly as 
> opposed to having each one of them run with event handling.
>  
>
>> 2. I also tried Qlistwidget to meet the interaction request,but the 
>> amount of the data is too large and performance does not good, not sure how 
>> to optimize.
>>
>
> This also lines up with my previous experience with the performance 
> constraints of a QListWidget. 
>  
>
>>
>> Above,we really have no idea how to solve the problem,please kindly be 
>> advise.thanks.
>>
>
> In the past I have done a few apps that have the layout you described by 
> managing a QVBoxLayout within a scroll widget. This has the downside that 
> you have to manage the items without the model/view interface. How many 
> items do you tend to have when you experience performance issues?
>
>  
>
>>
>>
>> Thanks
>>
>> -- 
>> 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 python_inside_maya+unsubscr...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/61f0065a-8bee-4f7e-9b6f-e0f02fa1b4e3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/61f0065a-8bee-4f7e-9b6f-e0f02fa1b4e3%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/935db486-7739-4fd8-9e64-36ffa1ed690c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to