Hello,
I currently use the API 1, and use the isNull() method of QVariant to detect
a Null QVariant. This is necessary to detect a NULL value in a database.
It seems there is no equivalent in API2 of PyQt. None is used to model an
invalid QVariant. But how to model a Null QVariant?
http://www.
Hi,
Ullrich Martini wrote:
> > It should be u"日本".
>
> you are right, with the 'u' I get not output at all instead of the garbled
> output.
Hmm, unicode characters are somehow invisible?
> Regarding python: Could you please post whether you use 32 bit or 64 bit
> python?
64bit, preinstalled
On Tue, 21 Dec 2010 11:05:03 +0100, TP wrote:
> Hello,
>
> I currently use the API 1, and use the isNull() method of QVariant to
> detect
> a Null QVariant. This is necessary to detect a NULL value in a database.
>
> It seems there is no equivalent in API2 of PyQt. None is used to model
an
> i
Phil Thompson wrote:
> The short answer is that you can't. However...
>
> QVariant::isNull() typically delegates to the enclosed data's isNull()
> method (eg. QString::isNull()). So your example for API v1 will also work
> for API v2.
>
> It gets a bit more complicated if you are also using the
Hi All
I have a QtreeView with an QSortFilterProxyModel set as model
When I fill the ProxyModel I can see all the data I supplied. So its
working.
Now I want to display somthing like 'x of y' after applying a filter.
with x the number of remaining rows from the total y.
So for short where can
On Tue, 21 Dec 2010 21:06:11 +0100, TP wrote:
> Phil Thompson wrote:
>
>> The short answer is that you can't. However...
>>
>> QVariant::isNull() typically delegates to the enclosed data's isNull()
>> method (eg. QString::isNull()). So your example for API v1 will also
work
>> for API v2.
>>
>>
Hi, Abhishek, :)
On Fri, 17 Dec 2010, Abhishek wrote:
Hi all,I have a general coding question as opposed to specific to
pyqt. In a gui, if I want to have a status message box (a QLabel)
which should display messages from all components of the gui, what
is the best way to go about it? Should all
Phil Thompson wrote:
> API v1 will be supported until PyQt5 or Python v4.
Is it contractual? Why Python v4? It seems to me that nobody knows when
Python v4 will appear.
Anyway, it seems to be a problem that API2 does not support NULL, even if it
corresponds to side cases (as mine).
Thanks,
Ju
you could just access sql through python instead of through qt,
NULL would then correspond to None
On Tue, 2010-12-21 at 23:52 +0100, TP wrote:
> Phil Thompson wrote:
>
> > API v1 will be supported until PyQt5 or Python v4.
>
> Is it contractual? Why Python v4? It seems to me that nobody knows w
Erik Janssens wrote:
> you could just access sql through python instead of through qt,
> NULL would then correspond to None
Thanks.
Yes, it is possible to use for example the sqlite3 module, but there are
facilities related to the GUI, available when using Qt: QSqlTableModel,
QSqlRelationTableM
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 QtSql neck and crop. That's a high price
to pay, isn't it?
Sure, Camelot does this, but I really apprec
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 QtSql neck and crop. That's a high
12 matches
Mail list logo