AFAIK there is no way to import custom pyside widgets in QtDesigner. Is there any particular reason for this? This is a huge shame, QtDesigner is a major time saver in terms of producing straightforward ui components such as dialogs. Other python gui frameworks really don't have anything like it to offer either, so it's definitely a big competitive advantage for pyside/qt. However If I can't use custom pyside widgets QtDesigner is a lot less useful IMHO.
_______________________________________________
PySide mailing list
PyS...@lists.pyside.org
http://lists.pyside.org/listinfo/pyside
I always use uic, so I don't know. Perhaps someone else on the list knows.
Nathan
I found a strange behaviour of QTabWidget depending on the platform. The
type of the argument passed by the signal "currentChanged" should be
integer looking at the doc and it is on linux, but on MacOS, a QWidget
is passed (The current tab widget...). Why?!? Thanks for having a look
at it or sending me the type passed on Windows (I have currently no
windows to test, sorry)!
Aaron
This code demonstrates it:
from PySide.QtGui import *
from PySide.QtCore import *
import sys
def slot(parameter):
print type(parameter)
app = QApplication(sys.argv)
t = QTabWidget()
for i in xrange(1, 4):
t.addTab(QWidget(), 'Tab %d' % i)
t.currentChanged.connect(slot)
t.show()
app.exec_()
On Jan 13, 2012, at 1:08 PM, Aaron Richiger wrote:
> Hello everybody!
>
> I found a strange behaviour of QTabWidget depending on the platform. The type of the argument passed by the signal "currentChanged" should be integer looking at the doc and it is on linux, but on MacOS, a QWidget is passed (The current tab widget...). Why?!? Thanks for having a look at it or sending me the type passed on Windows (I have currently no windows to test, sorry)!
What version of PySide are you using? I backed down to 1.0.4 due to the bugs in newer versions.
On OS X with PySide 1.0.4 I got the expected output (type is int) which is the same result as I got on Windows and Linux.
Tim Doty
Could anyone with a newer PySide version test my testcode on MacOS to
tell me whether the bug is still there? Thanks!
Aaron