On 11/08/12 11:14, engdarkman89 wrote:
> Thanks for taking the time to replay.
>
> I tried to call myRelationalTableModel.relationModel(columnIndex).select()
> after saving changes to table A, but it doesn't solve the problem.
>
> Any thoughts.
>
>
I have found the problem and a workaround
htt
On 10/08/12 23:43, engdarkman89 wrote:
> 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 t
El 03/05/12 16:02, Andrew Suffield escribió:
> On Thu, May 03, 2012 at 08:15:26AM -0400, Mark Mordeca wrote:
>> while(query.next()):
>>
>> idString=str(query.value(0).toString())
>>
>> passwordString=str(query.value(1).toString())
>>
>>
>>
>> query.value() returns a QVariant, so you use
El 27/04/12 00:12, Jake Richards escribió:
> Hello:
> I've got a QTreeView that uses a QLineEdit as a QItemDelegate for one of
> it's
> columns. The problem is that I want to display the QLineEdit all the time,
> not
> just when the user double clicks and starts editing. Am I using the wrong
I have read right now the versions you tested, the problem appeared for me after
upgrade to Qt 4.8.0
El 02/01/12 15:01, Mailing List SVR escribió:
> Il 02/01/2012 13:03, Linos ha scritto:
>> thanks for test it.
>>
>> have you tried scrolling the table? i get strange vis
thanks for test it.
have you tried scrolling the table? i get strange visual problems with the
vertical header when i scroll the table.
Regards,
Miguel Angel.
El 02/01/12 10:44, Mailing List SVR escribió:
> Il 31/12/2011 16:01, Linos ha scritto:
>> has anyone tried this?
>
>
has anyone tried this?
El 28/12/11 18:16, Linos escribió:
> Hi,
> after Qt upgrade to 4.8.0 in my machine i have been getting problems
> with the
> painting of vertical headers in QTableViews with a QSqlQueryModel that refresh
> on event (for example after tab change).
>
Hi,
after Qt upgrade to 4.8.0 in my machine i have been getting problems
with the
painting of vertical headers in QTableViews with a QSqlQueryModel that refresh
on event (for example after tab change).
I have created a testcase because i wanted to report the bug to Qt bug tracker
but i ca
Hi,
i am trying to create a QTableView subclass that allows me to show a
QHeaderView inside the viewport (above the horizontal scrollbar) with summary
data of the columns of the model, but i am getting a difficult time getting this
to work, anyone have created something like this and can po
Hi,
i am trying to do my first library wrapper to the libfprint c lib
(http://www.freedesktop.org/wiki/Software/fprint/libfprint) using SIP, i have
any doubts, sorry if any or all of them are pretty obvious but i develop nearly
ever on python, a bit on Qt C++ so all of this it is a bit strange
What's wanted is the ability to replace QML/JavaScript with something that
calls the same public C++ API that QML/JavaScript does. I don't have a
problem if, at this stage, it isn't possible to define that API, and I am
more than happy to contribute to the development of Qt5 to make sure it is
su
El 08/06/11 11:50, Erik Janssens escribió:
Hello Phil,
good to hear you're going to the contributors summit, here are my
main concerns (pretty much in line with the other responses) :
- the OpenGL requirement : will this still work decent through remote
desktop and citrix. imho this is impo
El 07/06/11 13:07, Phil Thompson escribió:
On Tue, 7 Jun 2011 11:46:08 +0100, Daniele Esposti
wrote:
Well, datetime package doesn't support operations with QDate
instances, for example QDateEdit().date() + datetime.timedelta(days=1)
raises a TypeError.
Just use...
QDateEdit().date().toPyDate(
El 04/01/11 14:08, Phil Thompson escribió:
The problem...
v2 of the QVariant API (the default for Python v3) eliminates QVariant as
a Python type. Python objects are converted to and from C++ QVariants
automatically as and when required. An invalid C++ QVariant is converted
to and from None.
El 22/12/10 12:22, Phil Thompson escribió:
On Wed, 22 Dec 2010 11:56:20 +0100, "Hans-Peter Jansen"
wrote:
On Wednesday 22 December 2010, 07:00:01 Phil Thompson wrote:
On Wed, 22 Dec 2010 01:33:49 +0100, "Hans-Peter Jansen"
wrote:
On Tuesday 21 December 2010, 23:58:39 Erik Janssens wrote:
yo
El 22/12/10 07:00, Phil Thompson escribió:
On Wed, 22 Dec 2010 01:33:49 +0100, "Hans-Peter Jansen"
wrote:
On Tuesday 21 December 2010, 23:58:39 Erik Janssens wrote:
you could just access sql through python instead of through qt,
NULL would then correspond to None
...by the price of renouncing
Hello Phil,
i have a problem with this version and a QFormLayout, this code in the
.ui file:
80
0
Hello,
i have a QTableView with a QSortFilterProxyModel using a QSqlQueryModel
as
source, in Qt 4.5 i execute after the query has populated the data of the table
resizeColumnsToContents() or resizeColumnToContent(int) and it get adjusted to
the column contents but in Qt 4.6 if i have not
escribió:
On Sun, 01 Aug 2010 19:49:11 +0200, Linos wrote:
Hello,
i don't know if this is a bug or an intended behavior but i am using in
my
machine Arch Linux pyqt 4.7.4 with sip 4.10.5 and in older versions the
behavior
was:
combo = QComboBox()
if combo:
print &q
Hello,
i don't know if this is a bug or an intended behavior but i am using in my
machine Arch Linux pyqt 4.7.4 with sip 4.10.5 and in older versions the behavior
was:
combo = QComboBox()
if combo:
print "exists"
else:
print "is none"
would print "exists" and now it prints "i
Hi,
if you want to use real widget all the time you can use
QAbstractItemView.setIndexWidget but when you have many rows this is a
performance problem, the usual method it is emulate the widget with
QStyle.drawControl in the paint method of the delegate and load the real widget
when editrole
your immediate bug, and will probably avoid many others.
I know that my implementation is very rough, but it is intended just for
testing purposes. Of course your workaround and other similar (like the one
sent by Linos) fixes the problem, but they leave the main question unanswered:
why wrong
Phil Thompson escribió:
On Fri, 16 Oct 2009 16:27:00 +0200, Linos wrote:
i dont know if this is a bug or a change in behaviour but keyPressEvent
dont
catch the keyboard events in my QWidget or QDialog subclasses. In the
example
added with PyQt 4.4 you can press any key and get his int code
i dont know if this is a bug or a change in behaviour but keyPressEvent dont
catch the keyboard events in my QWidget or QDialog subclasses. In the example
added with PyQt 4.4 you can press any key and get his int code printed but with
last snapshot it never prints anything.
- CODE
# -*- c
Hello Phil,
i have detected other problem with clases inheriting from a abstract qt
subclass and a python subclass. Here you have sample code. it gives me this
error when i click the button.
TypeError: QAbstractItemModel.rowCount() is abstract and cannot be called as an
unbound method
and other code sample as well, if i execute this code i get this error for every
connect i try to do in the QThread run() method.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is TestThread(0x99e09b8), parent's thread is QThread(0x98e60f0), current
thread i
Hello,
i have updated versions to sip 4.9 and pyqt 4.6 and finally i have some time to
make reproducible examples of the errors i posted to the mailing list some time
ago, this code gives me on my machine (Arch Linux, qt 4.5.2, sip 4.9, pyqt 4.6
and python 2.6.3) this error when i push the but
Hello,
i have upgraded my linux development machine from pyqt 4.4.4 to 4.5.4 (and sip
4.7.9 to 4.8.2) and i am getting any errors with my application. My Qt version
it is 4.5.2 but errors are related to pyqt version because if i downgrade pyqt
all works, well obviously can be problems with my
It is compatible use QT LGPL with pyqt commercial? if this is the case i think
it is much more easy to pay pyqt to develop closed source apps that was before
qt changed to lgpl, because the price to develop closed source apps with pyqt
has decreased greatly.
Miguel Angel
Arnold Krille escribi
=self.changeStatus,m=msg,a=activated: changeStatus(m,a)
This ensures that the bindings of self, activated and msg are what you
expect when the lambda function is executed.
On 4/2/09 7:16 PM, "Linos" wrote:
Hello,
i suppose i am making any mistake here but i dont know why,
f
Hello,
i suppose i am making any mistake here but i dont know why, for example:
for checkbox, msg in ((self.printedCheckBox, "printed"), (self.finishedCheckBox,
"finished")):
self.connect(checkbox, SIGNAL("clicked(bool)"), lambda activated:
self.changeStatus(msg, activated))
This one
simozack escribió:
2009/1/27, Linos :
For an example form that i would need to manage i have a customer table and
an address table (because for every customer they can have > 1 addresses) so
in the same form i would like to edit all the possible data of the customer.
It seems a work for
Hello,
i have been reading about qdatawidgetmapper and qsqltablemodel or
qsqltablerelationalmodel but i am not sure any combination of them can fills my
needs or if i could do in a better way.
For an example form that i would need to manage i have a customer table and an
address table (becaus
Hello Eduardo,
if you refer to normal receipt printers (like epson pos printers), i use them
but after have problems using directly with qt like you are trying i configured
the cups spool for the printer in raw format and create a file in the encoding
configured for the printer (cp850) in pyth
Hello,
i have any queries that returns a somewhat large (not too much) number of rows
(about 5000 with 7~8 columns), i am using now QSqlQueryModel in a QTableView,
the problem it is the load at startup (and when i have to refresh the table for
an update), i have thought to use a secondary thre
Thank you Phil.
Phil Thompson escribió:
On Tuesday 06 May 2008, Linos wrote:
Phil do you have for download the source of the windows installer? this way
i could compile to have an installer without that problem.
Regards,
Miguel Angel.
Attached is the installer source.
Phil
Phil do you have for download the source of the windows installer? this way i could compile to have an
installer without that problem.
Regards,
Miguel Angel.
--- Begin Message ---
Hello,
i have a problem using odbc driver if i install the binary installer version (PyQt-Py2.5-gpl-4.3.3-2.exe),
Hello,
i have a problem using odbc driver if i install the binary installer version (PyQt-Py2.5-gpl-4.3.3-2.exe), if
i download qt 4.3.3, mingw32, sip-4.7.4 and PyQt-4.3.3 and compile sip and PyQt i dont have this problem, the
error it gives me when the script ends is:
the instruction at "0x0
Should be possible to create a model (QAbstractTableModel subclass) and a view (QTableView subclass) in c++
and use it from a PyQt program with sip or any other way?
Regards,
Miguel Angel.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www
IloChab escribió:
2008/2/26, Linos <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
IloChab escribió:
> I'm using the couple QTableView+QSqlQueryModel.
>
> I was wondering if it's possible to extend the table with some
columns
>
IloChab escribió:
I'm using the couple QTableView+QSqlQueryModel.
I was wondering if it's possible to extend the table with some columns
not contained in the relation but computed on the fly from the application.
If it's possible I'd like to know how, because I made some tests without
any su
Hello,
i have created one pyqt app we are using in my company, it is warehouse
application, any fast workers
seems to be faster that application because of fast bar code scanners, they are
introducing items in a
QTableView with an internal QAbstractTableModel subclass and using
QItemDelegat
Hello,
i have created one pyqt app we are using in my company, it is warehouse application, any fast workers
seems to be faster that application because of fast bar code scanners, they are introducing items in a
QTableView with an internal QAbstractTableModel subclass and using QItemDelegate
Sibylle Koczian escribió:
Hello,
I'm using PyQt 4.3.3, Qt 4.3.3, Eric 4.0.4(r1711), sip 4.7.3, QScintilla 2.1,
Python 2.5.1 on Gentoo Linux, with KDE 3.5.8 as my Desktop manager. After one
of the last Gentoo updates the font in Eric and in all my PyQt applications
suddenly changed to somethin
Doug Bell escribió:
> Linos wrote:
>>> Hello, i have a problem with a listwidget i have created inside a
>>> QToolBox page, if doesnt emit signals, i can select the items but it
>>> doesnt emit itemDoubleClicked or itemClicked or itemActivated, i
>>> have tri
Phil Thompson escribió:
> On Saturday 08 December 2007, Linos wrote:
>> Linos escribió:
>>> Hello, i have a problem with a listwidget i have created inside a
>>> QToolBox page, if doesnt emit signals, i can select the items but it
>>> doesnt emit itemDoubleCli
Linos escribió:
> Hello, i have a problem with a listwidget i have created inside a QToolBox
> page, if doesnt emit signals, i can
> select the items but it doesnt emit itemDoubleClicked or itemClicked or
> itemActivated, i have tried with mouse
> and keyboard without luck, i ha
Hello, i have a problem with a listwidget i have created inside a QToolBox
page, if doesnt emit signals, i can
select the items but it doesnt emit itemDoubleClicked or itemClicked or
itemActivated, i have tried with mouse
and keyboard without luck, i have installed an event filter and do a print
hello,
i would like to know if exist any link about specific optimization tips
for python using pyqt i am trying to
optimize the code the most possible to try to maintain in pyqt and not have to
reprogram in c++, for example
do have psyco good results?
Regards,
Miguel Angel.
Hello all,
inside a dialog i populate the contents of a query in three comboboxes
like this:
self.subfamiliaModel = QSqlQueryModel()
self.subfamiliaComboBox.setModel(self.subfamiliaModel)
self.subfamiliaModel.setQuery("SELECT SUBFAMILIA_ID & ' ' & NOMBRE FROM
SCHEMA.MODELO_SUBFAMILIA ORD
Hello all,
i have a question about speed optimization with PyQt, i cant find any
clear explanation about this question
in google, i am developing an app with many .py files, in the beginning i am
using this imports.
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtSql im
Phil Thompson escribió:
> On Tuesday 20 November 2007, Linos wrote:
>> Hello,
>> i want to emit a signal from a dialog that contains a dictionary (i
>> would
>> like to do with a qt class but QMap dont seems to be in PyQt, almost this
>> "test = QMap
Hello,
i want to emit a signal from a dialog that contains a dictionary (i
would like to do with a qt class but QMap
dont seems to be in PyQt, almost this "test = QMap()" doesnt works), i know i
can pass a python dictionary in
a short-circuit signal but i would like to send with a qvarian
Ingmar Steen escribió:
> On Nov 18, 2007 8:44 PM, David Boddie <[EMAIL PROTECTED]> wrote:
>> On Tue Nov 13 22:43:29 GMT 2007, Linos wrote:
>>
>>> Ok, the real problem here it is that i cant use the dot in the numpad to
>>> begin decimal numbers, i have ch
begin decimal numbers (although i
view a comma), anyone knows how to map the symbol or other way to do that?
Linos escribió:
> Hello,
> i have a problem with the decimal separator in float numbers, i detect
> the problem in a QDoubleSpinBox (the
> decimal separator should be &
Hello,
i have a problem with the decimal separator in float numbers, i detect
the problem in a QDoubleSpinBox (the
decimal separator should be "." but it is ",") and i think it is failing in
other objects. My locale in
"es_ES", if i use "locale" command in bash i get this:
LANG=es_ES
LC_
Well i have fixed using html code in qlabel.setText, i have now bold and the
size i wanted but i think this is
a bug, i dont know if pyqt or qt but it seems a bug.
Linos escribió:
> Hello all,
> i have a problem with a QLabel i want to change the font size and make
> bold, i have
Hello all,
i have a problem with a QLabel i want to change the font size and make
bold, i have a dialog created in
designer where i have changed the font, i can view the change ok in the
designer preview but when i launch the
code with the dialog imported it doest not change the standard
Matt Newell escribió:
> On Thursday 01 November 2007 08:14, Linos wrote:
>> Hello,
>> queryinsertmaxdb = QSqlQuery(maxdb)
>> queryinsertmaxdb.prepare("INSERT INTO NAMESPACE.MODELO_FAMILIA (FAMILIA_ID,
>> NOMBRE, SECCION) VALUES (?, ?, ?)")
>>
>
>
Hello,
i have a problem with QSqlQuery, i have a column "nombre" with an unique
index (constraint), i am doing
many inserts from PyQT (ODBC driver), i have the same problem from windows
client and linux client, when any
of the inserts of the prepared query have a duplicated unique column all t
Hello all,
i have a segmentation fault when i close the dialog i am using to test
my sql model (using qdialog.accept in
a button or exiting with escape i have the same error), i have compiled pyqt
and qt with debug support and i
have this with gdb:
--
I recommend this book to anyone that wants to learn PyQt, it is a excellent
book with many real world examples
with working code and really new stuff (it even use import from future in
python).
Regards,
Miguel Angel.
Mark Summerfield escribió:
> Hi,
>
> I am delighted to announce that
>
>
datasets, any comments about this would
be appreciated, thanks.
Linos escribió:
> David thanks for your reply i get this to work yesterday, the problem was
> that i was not implementing
> rowcount() so the new line was painted in the view but it did not have real
> index so data() and s
to insert it all in a
final transaction if the model have dirty property true.
Best Regards,
Miguel Angel.
David Boddie escribió:
> On Wednesday 17 October 2007 12:14:52 +0200, Linos wrote:
>
>> I am goin crazy with this problem, i have tested with qsqltablemodel
>> subclassi
joins and other stuff if i cant fix this (but this is not recommended in
documentation).
Best Regards,
Miguel Angel.
Linos escribió:
> Hello,
> i am trying to subclass QSqlQueryModel to write with it, i need this
> because not qsqltablemodel or
> qsqlrelationaltablemodel fill
Hello,
i am trying to subclass QSqlQueryModel to write with it, i need this
because not qsqltablemodel or
qsqlrelationaltablemodel fills my needs, i would like to do joins and insert in
multiple tables, i have
implemented "flags" and "setData" methods and it works ok now, i have made a
"
Horst Herb escribió:
> Hi,
>
> I am new to PyQt4, trying to write my first app.
>
> I would like to write an application with multiple docking widgets. The
> application should remember the state (size, location) of the docked widgets
> (wherever the user has placed them).
>
> How can I achiev
[EMAIL PROTECTED] escribió:
>
> Citando Linos <[EMAIL PROTECTED]>:
>
>> Paulino escribió:
>>> Linos escreveu:
>>>> [EMAIL PROTECTED] escribió:
>>>>
>>>>> Citando Linos <[EMAIL PROTECTED]>:
>>>>&g
Paulino escribió:
> Linos escreveu:
>> [EMAIL PROTECTED] escribió:
>>
>>> Citando Linos <[EMAIL PROTECTED]>:
>>>
>>>
>>>> [EMAIL PROTECTED] escribió:
>>>>
>>>>> Citando Linos <[EMAIL PROTECTE
[EMAIL PROTECTED] escribió:
>
> Citando Linos <[EMAIL PROTECTED]>:
>
>> [EMAIL PROTECTED] escribió:
>>>
>>> Citando Linos <[EMAIL PROTECTED]>:
>>>
>>>> Paulino escribió:
>>>>> *>Linos* info at linos.es
>&g
[EMAIL PROTECTED] escribió:
>
> Citando Linos <[EMAIL PROTECTED]>:
>
>> Paulino escribió:
>>> *>Linos* info at linos.es
>>> <mailto:pyqt%40riverbankcomputing.com?Subject=%5BPyQt%5D%20Build%20PyQt%20with%20sql%20Driver%20plugins&In-Reply-To=2
Paulino escribió:
> *>Linos* info at linos.es
> <mailto:pyqt%40riverbankcomputing.com?Subject=%5BPyQt%5D%20Build%20PyQt%20with%20sql%20Driver%20plugins&In-Reply-To=200709251523.53366.phil%40riverbankcomputing.co.uk>
> />Tue
The last version in windows works very well for me with odbc support but i have
compilend by hand (sip
and pyqt, qt installed from binary) i dont know if binary packages fail, i have
a problem with odbc in
linux but in windows works very well.
Phil Thompson escribió:
> On Tuesday 25 September 20
om.
> (...)"
>
> Paulino
>
>>
>>
>> Date: Sun, 23 Sep 2007 13:23:24 +0200
>> From: Linos <[EMAIL PROTECTED]>
>> Subject: [Fwd: [PyQt] ODBC QSqlQuery]
>> To: pyqt@riverbankcomputing.com
>> Message-ID: <[EMAIL PROTECTED]>
.120808 secs); 19 Sep 2007 10:18:08 -
X-Spam-Status: No, hits=4.4 required=7.0
X-Spam-Level:
X-Antivirus-LINOS-Mail-From: [EMAIL PROTECTED] via centrodatos
X-Antivirus-LINOS: 2.01st (Clear:RC:0(209.249.12.202):SA:0(4.4/7.0):. Processed
in 4.120808 secs Process 26403)
Received: from 20
Hello, i have a problem with QSqlQuery accessing a dsn in linux, i have no
problem with exactly the same code in windows and i check i have correctly
opened the datasource, here i paste the relevant code snippets.
--
76 matches
Mail list logo