Sunday, July 6th 2008, 6:27pm UTC+1

You are not logged in.

  • Login
  • Register

1

Monday, October 15th 2007, 6:57pm

PyQt with uic and MNG support?

anyone here using PyQt and uic to load Qt designer's .ui files?

I'm using Qt 4.1.4 Designer (winxp) and PyQt4 and trying to get an animated png (aka mng) file to display.

It loads and displays fine (albiet not animated) in Designer, but won't display at all when I execute my Python script using PyQt and uic.

Source code

1
2
3
4
5
from PyQt4 import QtCore, QtGui, uic
app = QtGui.QApplication(sys.argv)
...
QtGui.QWidget.__init__(self, *args)
uic.loadUi("dialog.ui', self)
  • Go to the top of the page

2

Tuesday, April 8th 2008, 3:27pm

RE: PyQt with uic and MNG support?

Are your .py file and the .ui file in the same directory? Remember that Qt Designer uses relative paths to refer to the images - you might need to either edit the .ui file, load the png in programmatically in the .py file, or move the .ui file into the same directory as the .py file (in Qt Designer so that the paths are updated)
  • Go to the top of the page

Rate this thread