How do you mean creating the icons? Could the icons not be created as they
are shown, or are you showing 50,000 items all at once? Also what is the
content of your icons, are they .png files, fetched from the web etc.?

Overall though, it sounds like something that qualifies as a Qt 4 vs 5
question, alternatively PySide vs PySide2. You might be able to get help on
Stackoverflow or the like.

On 22 May 2017 at 09:10, Michael Boon <[email protected]> wrote:

> Hey all,
>
> I've just discovered that QIcon is really slow to create in Maya 2017. I'm
> creating what is essentially a file browser, and my old version had a
> QStandardItemModel, a QListView with 
> setViewModel(QtWidgets.QListView.IconMode)
> and about 50,000 icons. Creating the icons used to take ~1 second and now
> takes ~5 minutes.
>
> Has anyone else found this? Does anyone know a way around it? Or has
> anyone else found that they can create QIcons fast?
>
> Thanks!
>
> Boon
>
> --
> 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/185bdb63-7a77-4201-83e8-
> 3f361b1cca4b%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/185bdb63-7a77-4201-83e8-3f361b1cca4b%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/CAFRtmOD1ZZFxqjxs3So-EimBG5xQzf4Ycq%3Dx8GKAwu3MNtUSZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to