On Tue, 20 Sep 2016, 8:54 PM Juan Tigreros <jtige...@gmail.com> wrote:

> Hi everyone!
>
> Perhaps this is a simple question but I can seemed to succeed at googling
> it. Maybe someone here can help?
>
> I would like to change the text color of a text or background color if the
> item in a qlistwidget? I am double clicking on an item and will like to
> change the color of it, then change it back once i double clicked in
> another item in the list. Any ideas?
>

Check out setForeground and setBackground on the QListWidgetItem

http://doc.qt.io/qt-4.8/qlistwidgetitem.html#setForeground


-- 
> 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/3f1cd8c0-0f1f-471a-80e8-49205b0dbe36%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/3f1cd8c0-0f1f-471a-80e8-49205b0dbe36%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/CAPGFgA0pZASsDrXaRyEfVYj_Me9ndsG4UY3uPRhjXv1mfoTTcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to