function return the error as string
print "Error on committing: %s" % (model.lastError().text())
else:
print "Everything is ok!"
In some cases, for example if you delete some records, you need to use
the model.submit() function instead.
--
Simone
Chiacchier
ue on that problem?
I would like to post the .ui file, but that's 129Kb of size and I don't
know If it's accepted.
I'm using Qt 4.3.3 OS edition on WinXP.
TIA
--
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/
ment
like what you need?
--
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
xChanged(self, index):
print self.ComboBox.itemData(index).toString()
Normally this works for me... :)
--
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
PyQt mailing listPyQt@ri
the setItemData() method to store the information needed and the
findData method to find an item or an index with needed data. More
information on the QComboBox Class Reference.
--
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http
| Else | 2 | -- Unexpected
-
In the database the values are different as expected.
The database engine is Sqlite, PyQt 4.3.3, Python 2.5.2 on Windows XP SP3.
What could it be? :)
--
Simone
Chiacchiera con i tuoi amici in te
e 'app' is not defined"
On the __init__ of the Main class, of course.
Ciao!
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
PyQt mailing listPyQt@ri
#x27;t know how to do it.
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
a ',' key press event when I hit the '.' in the
numeric pad? If yes, have you some code to post? :D
Thanks,
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
Py
Mark Summerfield ha scritto:
On 2008-04-11, Simone Zaccarin wrote:
I'm trying to create a custom QSqlRelationalDelegate.
In the database, the date field is in text form '-MM-dd'. I have to
show that string in a QSqlTable in the form 'dd-MM-'.
If that'
Simone Zaccarin ha scritto:
My only problem is that I construct the UI via QtDesigner. Is there a way to
"overwrite" the table added via Designer without being a PyQt4 expert?
Sorry, I misunderstood the message... :)
The QSqlRelationalTableModel is added by code... :)
Simone
Chiac
My only problem is that I construct the UI via QtDesigner. Is there a way to
"overwrite" the table added via Designer without being a PyQt4 expert?
:D
Simone
- Messaggio originale -
Da: Mark Summerfield <[EMAIL PROTECTED]>
A: pyqt@riverbankcomputing.com
Cc: Simone
painter.translate(option.rect.x(), option.rect.y())
document.drawContents(painter)
painter.restore()
else:
QSqlRelationalDelegate.paint(self, painter, option, index)
I'm on WinXp SP2, PyQt 4.3.3 and Python 2.5.2.
Thanks,
Simone
Inviato da Yahoo! Mail.
La c
ESCRIPTION text,
FK_TO_TABLE_2 integer;
TABLE_2:
ID integer primary key autoincrement,
DESCRIPTION text;
The inserted rows are:
TABLE_2:
insert into TABLE_2(ID) values (-1);
TABLE_1:
insert into TABLE_1(ID, FK_TO_TABLE_2) values (-1, -1);
HTH!
Simone
Chiacchiera con i tuoi amici in tempo reale!
http
ed to something to do with a qstring, but
I'm at a loss.
Perhaps the os.walk(mypath) function in python? This function returns a
list of files or directory and interating over that list you can add the
items in the combobox.
HTH,
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it
elf.
For example:
self.widgets = []
label1 = QLabel(self)
# other stuff...
self.widgets.append(label1)
line_edit1 = QLineEdit(self)
# other stuff...
self.widgets.append(line_edit1)
for widget in widgets:
name = widget.objectName()
Simone
Chiacchiera con i tuoi amici in tempo reale!
htt
to the status of table. Do you have the
permission to read the table? Which database are you using?
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
___
PyQt mailing listPyQt
) #returns 0
self.ui.tvOpcionesReglas.setModel(self.tb)
self.ui.tvOpcionesReglas.show() #only show the column names
Stupid question: is there any records on the table?
Simone
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger
Simone ha scritto:
The relations, also, are right because in the rest of the program I'm
writing, I have a QTableView that shows correctly the description of the
foreing key.
I answer to myself: it's my error (any doubt? :D )
Simply the filter field has a duplicate name (the same
he result of this query is 1 as
expected. Note that the filter is in a field that hasn't any external
relations with other table.
The relations, also, are right because in the rest of the program I'm
writing, I have a QTableView that shows correctly the description of the
foreing key.
I
rding the sql
functions and widgets.
Thank you,
Simone
___
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
1137 %End
> Which distribution/version are you using?
I'm on Mandrake 9.2
When I've more time I'll try rebuilding everything from source, anyway it
would be nice to understand exactly where the problem is, so that I can send
feedback to Mandrake people.
Thank you again
Simone
Hi guys,
Building PyKDE 3.8 on linux2.
Python version is 2.3
Python parent directory is /usr/lib/python2.3
Python library directory is /usr/lib/python2.3/config
Python include directory is /usr/include/python2.3
Home directory is /home/simone
sip code generator path (sip) is /usr/local/bin
23 matches
Mail list logo