[PyQt] How can i update QSqlRelationalTableModel

2012-08-10 Thread engdarkman89
Hi, I will try to explain the problem with the following scenario: Suppose we have two tables A and B, table B has a Foreign key column from A and we applied QSqlRelation to that column, now we insert/update a row in table A. The problem is that the QSqlRelation still see the old A table, how can

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-10 Thread Evade Flow
> It seems the trick is to specify QDBusMessage as the slot argument... > > @pyqtSlot(QDBusMessage) > def setColors(self, msg): > for red, green, blue in msg.arguments()[0]: > print(red, green, blue) > > Does this technique solve all your issues? Indeed,

Re: [PyQt] Pixel size issues with QPainter, QLabel and QSvg

2012-08-10 Thread matameko
(For Qt version 4.8.2 on win7:) + The QSvgWidget does not seem to reproduce the "letter-spacing" of a svg text at all. + The QWebView reacts on the letter-spacing. However, + the letter-spacing for the svg text in a QWebView seems to be about twice as large as for a text on a QLabel. + It is possib

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-10 Thread Phil Thompson
On Tue, 7 Aug 2012 15:45:43 -0400, Evade Flow wrote: >> In theory you should be able to use QDBusArgument but I've not tested >> it - I've always struggled to find test cases. > > Maybe the little server app appended below will help. Using dbus-send, I > can exercise the 'name' property and 'echo