[PyQt] PyQt uic.loadUI not loading icons from theme

Phil Thompson phil at riverbankcomputing.com
Fri May 1 16:06:58 BST 2015


On 01/05/2015 1:16 am, Jared Henley wrote:
> Hi,
> 
> I am having trouble loading up icons from a system icon theme.  I'm
> creating a ui in Qt Designer and loading it using uic.loadUi().  If I
> set a theme icon for a pushbutton, for example, it loads fine into Qt
> Designer but fails to appear when the application is run.
> 
> System info:
> ArchLinux on amd64.
> PyQt and Qt: 5.4.1
> Python: 3.4.3
> 
> It seems that this issue has been around for a while.  I found this
> (http://stackoverflow.com/questions/12515571/pyqt4-not-loading-icons-from-ui)
> on stack overflow, so checked the pyqt mailing list archives from
> September 2012 onward and found nothing.  The stack overflow link
> points to a specific bug in PyQt.

Send me a .ui file that demonstrates the problem.

Phil


More information about the PyQt mailing list