On Wed, Jan 23, 2013 at 6:41 PM, Vincent Vande Vyvre
wrote:
> Le 23/01/13 17:12, Vicent Mas a écrit :
>> Hi,
>>
>> I have a subclass of QScrollBar and I'd like to customize how it
>> handles the QEvent.Wheel event. My first idea was to override its
>> whe
Hi,
I have a subclass of QScrollBar and I'd like to customize how it
handles the QEvent.Wheel event. My first idea was to override its
wheelEvent() method, but this method gets never called when I wheel
the scrollbar. If I override the event() method and filter the wheel
events then everything goe
Hi,
as shows the following code, QComboBox.findItem works fine with lists
but no with tuples.
if __name__ == "__main__":
import sip
sip.setapi('QVariant', 2)
from PyQt4 import QtGui
a = QtGui.QApplication([])
cb = QtGui.QComboBox()
cb.addItem("Foo", [3,4])
cb.addItem("
On 2011-04-08 Phil Thompson said:
> On Thu, 7 Apr 2011 12:12:48 +0200, Vicent Mas wrote:
> > Hi,
> >
> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian testing
> > box
> > with Python2.7 and virtualenv-1.5.1. Running the attached scr
2011/4/7 Vicent Mas :
> On 2011-04-07 "Hans-Peter Jansen" said:
>
>> On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote:
>> > Hi,
>> >
>> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian
>> > testing box with P
On 2011-04-07 "Hans-Peter Jansen" said:
> On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote:
> > Hi,
> >
> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian
> > testing box with Python2.7 and virtualenv-1.5.1. Running the atta
Hi,
I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian testing box
with Python2.7 and virtualenv-1.5.1. Running the attached script raises the
following error:
(venv2.7)vmas@rachael:/tmp$ Traceback (most recent call last):
File "test_qaction.py", line 9, in
shortcut=QtGui.QK
On 2011-03-22 "Hans-Peter Jansen" said:
> On Tuesday 22 March 2011, 20:50:18 Vicent Mas wrote:
> > 2011/3/22 simozack :
> > > 2011/3/22 Vicent Mas :
> > >> it is explained in my second mail of this thread. Vincent Van de
> > >> Vyvre ask
2011/3/22 simozack :
> 2011/3/22 Vicent Mas :
>
>> it is explained in my second mail of this thread. Vincent Van de
>> Vyvre asked exactly the same. If it is not clear enough I can explain
>> it again. But let me insist, even if my script was purely an academic
>&g
2011/3/22 simozack :
> *Sorry, I answered with a private e-mail*
>
> 2011/3/17 Vicent Mas :
>
>> can somebody help me with this problem, please? I've spent several
>> days thinking about it but I still don't know if it is a bug (as I
>> believe) or not and
2011/3/11 Vicent Mas :
>>
>> Hi,
>>
>> Your code works fine without the function 'updateView(self, *value):'
>>
>> Is it necessary to use it and why ?
>>
>
> Sure it works fine without that method. But the script is just a
> simp
>
> Hi,
>
> Your code works fine without the function 'updateView(self, *value):'
>
> Is it necessary to use it and why ?
>
Sure it works fine without that method. But the script is just a
simplified code that shows a problem present in a larger and more
complex code in which that method is requir
Hi,
the attached script exhibits a strange behaviour which can be reproduced as
follows:
- run the script and enlarge the table. Keep the vertical scrollbar visible
- select a range of cells with the mouse, for instance top_left=(0,2) and
bottom_right=(2,3).
- now drag the slider downwards until
2011/1/24 lucabe...@libero.it :
> Hello I have install eric on mac, but when i try to generate dialog code i get
> this error :
> 'module' object has no attribute 'StackedWidget'
>
> Any Suggest?
>
>
> Python
> 2.6.1
> Qt
> 4.7.0
> PyQt
> 4.8.2
> sip
> 4.12
> QScintilla
> 2.4.6
> eric4
> 4.4.11 (r3
2011/1/20 Phil Thompson :
> On Tue, 18 Jan 2011 19:32:57 +0000, Vicent Mas wrote:
>> Hi,
>>
>> it seems there is a bug in QMainWindow.createPopupMenu. In my system
>> (Windows XP, Python 2.6, PyQt 4.8.2 installed using the Windows
>> installer), when I run
2011/1/19 Antonio Valentino :
> Hi Vicent,
>
> Il giorno Tue, 18 Jan 2011 19:32:57 +
> Vicent Mas ha scritto:
>
>> Hi,
>>
>> it seems there is a bug in QMainWindow.createPopupMenu. In my system
>> (Windows XP, Python 2.6, PyQt 4.8.2 installed using th
2011/1/18 Nick Gaens :
> - Win7 64bit
> - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
> (Intel)] on win32
> - Qt v4.7.0
> - PyQt GPL v4.8.1 for Python v2.6
> Result: no crashes, works like a charm..
>
Hi,
I get the crash also on Windows Vista 32bit (again Python 2.6 and Py
Hi,
it seems there is a bug in QMainWindow.createPopupMenu. In my system
(Windows XP, Python 2.6, PyQt 4.8.2 installed using the Windows
installer), when I run the attached script and close the created
QMainWindow, an error dialog appears saying that python.exe has found
a problem and must be clos
Hi,
2011/1/12 Ulrich Berning :
> It is definitely a problem of the tables package in combination with MinGW.
> I guess, you are using compiled binary packages.
>
Yes, I am.
> With the following combination of packages, I can reproduce your problem:
>
> python-2.6.6.msi
> numpy-1.5.1-win32-superp
Hi,
I'm trying to make an executable for the launcher script of my pyqt
application. I'm using the mingw version of sib.py (from the VendorId
package) but I've found some problems when importing modules that I
don't know how to fix. This used to work fine in the past, when my
application only supp
On 2010-12-09 Baz Walter said:
> On 09/12/10 18:01, Vicent Mas wrote:
> > On 2010-12-09 Baz Walter said:
> >>> but it means that there is still a bug: in the doItWrong function of my
> >>> script the setFileMode call doesn't reset the FileName label to a
On 2010-12-09 Baz Walter said:
> On 09/12/10 06:55, Vicent Mas wrote:
> > On 2010-12-08 "Hans-Peter Jansen" said:
> >> [...]
> >>
> >> Vicent, bad luck: check the fileMode paragraph a couple of lines below:
> >>
> >>
On 2010-12-08 "Hans-Peter Jansen" said:
> [...]
>
> Vicent, bad luck: check the fileMode paragraph a couple of lines below:
>
> http://doc.trolltech.com/latest/qfiledialog.html#FileMode-enum
>
> This function will set the labels for the FileName and Accept
> DialogLabels. It is possible to set
On 2010-12-08 "Hans-Peter Jansen" said:
> On Friday 03 December 2010, 11:12:42 Vicent Mas wrote:
> > Hi,
> >
> > the attached script shows a bug in QFileDialog. If on a given dialog
> > you call setLabelText(QFileDialog.Accept, text) and then you call
> &
On 2010-12-03 Vicent Mas said:
> On 2010-12-03 Vicent Mas said:
> > Hi,
> >
> > the attached script shows a bug in QFileDialog. If on a given dialog you
> > call setLabelText(QFileDialog.Accept, text) and then you call
> > setFileMode(FileMode) then the label
On 2010-12-03 Vicent Mas said:
> Hi,
>
> the attached script shows a bug in QFileDialog. If on a given dialog you
> call setLabelText(QFileDialog.Accept, text) and then you call
> setFileMode(FileMode) then the label is not set and the default label is
> used. If you call se
Hi,
the attached script shows a bug in QFileDialog. If on a given dialog you call
setLabelText(QFileDialog.Accept, text) and then you call setFileMode(FileMode)
then the label is not set and the default label is used. If you call
setFileMode(FileMode) first and then you call setLabelText(QFileD
On 2010-11-29 Andreas Pakulat said:
>
> I don't know Marks book, but I do know that his material is high
> quality. Sure for a simple example to learn the basics returning a
> static number regardless of the parent item passed in is fine. Its
> easier to understand for beginners, but that doesn'
On 2010-11-29 Andreas Pakulat said:
> On 29.11.10 18:48:26, Vicent Mas wrote:
> > 2010/11/28 Andreas Pakulat :
> > > On 27.11.10 21:27:55, Ian wrote:
> > >
> > > [...]
> > >
> > >> def rowCount(self, parent = None):
> > &g
Hi,
originally I posted this question the the long thread "Bugs galore in
QAbstractTableModel" but I'm suspicious the question has just been missed
because I got no answer and that thread seems now mainly devoted to modtest.py
So I've decided to resend my question with a new Subject. I hope I'm
2010/11/28 Andreas Pakulat :
> On 27.11.10 21:27:55, Ian wrote:
> [...]
>
>> def rowCount(self, parent = None):
>> ''' return No of rows of data. parent is a QModelIndex '''
>> return len(self.view)
>
> This is wrong, even for table models you have to take care to return the
>
On 2010-11-19 Doug Bell said:
> Hi,
>
> When exiting my PyQt application, I get the following error message:
>
> QObject::startTimer: QTimer can only be used with threads started with
> QThread
>
> The strange thing is that my application is single-threaded and doesn't
> contain any QTimer
On 2010-11-13 Phil Thompson said:
> On Sat, 13 Nov 2010 11:08:20 +0100, Vicent Mas wrote:
> > On 2010-11-13 Phil Thompson said:
> >> On Sat, 13 Nov 2010 09:57:26 +0100, Vicent Mas
>
> wrote:
> >> > Hi,
> >> >
> >> > I'
On 2010-11-13 Phil Thompson said:
> On Sat, 13 Nov 2010 09:57:26 +0100, Vicent Mas wrote:
> > Hi,
> >
> > I'm upgrading some code and moving signal/slot connections from old
>
> style
>
> > to
> >
> > new style but I'm having pr
Hi,
I'm upgrading some code and moving signal/slot connections from old style to
new style but I'm having problem with this line:
self.connect(self.tmodel, QtCore.SIGNAL("headerDataChanged(int, int,
int)"), self.my_slot)
where self is an instance of QtGui.QTableView and self.tmodel is
On 2009-11-07 Vicent Mas said:
> On 2009-11-07 Linos said:
> > ...
> > Hi,
> > in the qt examples from qt 4.5 documentation you can see they use this
> > in the model:
> > http://doc.trolltech.com/4.5/itemviews-simpletreemodel-treemodel-cpp.html
> >
&
On 2009-11-07 Linos said:
> ...
> Hi,
> in the qt examples from qt 4.5 documentation you can see they use this
> in
> the model:
> http://doc.trolltech.com/4.5/itemviews-simpletreemodel-treemodel-cpp.html
>
> QModelIndex TreeModel::index(int row, int column, const QModelIndex
> &parent)
On 2009-11-06 Baz Walter said:
> ...
> your implementation of QAbstractItemModel.index is going to get called
> *a lot* and in many unforseen ways.
Yes, but it is a general fact, not something that happens to my particular
implementation, right?
> i think a more sane implementation
> would b
> On Fri, 6 Nov 2009 10:22:59 +0100, Vicent Mas wrote:
> >> Hi,
> >>
> >> the attached script implements a minimal tree model featuring rows
> >> deletion. It works just fine with (Qt 4.4, PyQt 4.4.4). However, with
> >> (Qt
> >> 4.5.2,
> Hi,
>
> the attached script implements a minimal tree model featuring rows
> deletion. It works just fine with (Qt 4.4, PyQt 4.4.4). However, with (Qt
> 4.5.2, PyQt 4.5.4) and (Qt 4.5.2, PyQt 4.6.1) deleting the last row raises
> the following error:
>
> v...@rachael:/tmp$ python tmTester.py
Hi,
the attached script implements a minimal tree model featuring rows deletion.
It works just fine with (Qt 4.4, PyQt 4.4.4). However, with (Qt 4.5.2, PyQt
4.5.4) and (Qt 4.5.2, PyQt 4.6.1) deleting the last row raises the following
error:
v...@rachael:/tmp$ python tmTester.py &
[2] 6819
v...
Hi,
I'm trying to change the background of a QMdiSubwindow but it is not as
easy as I expected. For simplicity, in the attached example, I use a
QLabel as internal widget. When I try to change the label background
using the common chain
get palette + change palette + set palette
nothing happens
Sorry for the noise. It seems that my email client was not
synchronized with the server and I didn't saw your last post.
Happy to see that you fixed the problem.
Vicent.
2008/11/18 Edward K. Ream <[EMAIL PROTECTED]>:
> [quote]
> On Linux, a QTreeWidget will typically scroll horizontally when an
>
Hi,
you could catch the itemSelectionChanged() signal, then get the currently
selected item with selectedItems() and then call scrollToItem() slot. Note
that you can play with several scroll hint values in the scrollToItem method.
I haven't tested it, sorry.
Hope it helps.
El Tuesday 18 Novemb
Thanks for your confirmation.
Vicent
El Thursday 13 November 2008 Phil Thompson escribió:
> On Wed, 12 Nov 2008 14:54:55 +0100, Georg Altmann <[EMAIL PROTECTED]>
>
> wrote:
> > Vicent Mas schrieb:
> >> Hi,
> >>
> >> thanks for your answer
x27;t know anything about sip, so I may
be wrong). I'll try.
Regards
El Wednesday 12 November 2008 Georg Altmann escribió:
> Vicent Mas schrieb:
> > Hi,
> >
> > thanks for your answer. I've been working about the TypeError and I've
> > fo
triggering
the same action in other scrollbar, but I cannot. Instead the constants names
have to be used. Could you (or somebody else :-) tell me why?
Thanks.
PS: and thanks for your code, of course.
El Wednesday 12 November 2008 Georg Altmann escribió:
> Vicent Mas schrieb:
> > Hell
Hello,
I'm trying to make a QTableView with two 'connected' vertical scrollbars. By
connected I mean that the second scrollbar should be able to act on the first
one. As a simple case I want the first scrollbar to repeat the action
triggered by the second one. For instance, if I press the down
Hi,
I suppose you can use the QTextCursor, move it to the end of your document and
then call its position method (but I haven't tested it).
Hope it helps.
El Monday 03 November 2008 Edward K. Ream escribió:
> It there a way to get the length of the text in a QTextEdit without
> calling w.toPla
El Friday 27 June 2008 Phil Thompson escribió:
> On Fri, 27 Jun 2008 10:22:13 +0200, Vicent Mas <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > the attached scripts are intended to do the same thing: display a widget
> > that
> > contains a QTreeView with two c
Hi,
the attached scripts are intended to do the same thing: display a widget that
contains a QTreeView with two columns and one row. The script right.py works
just fine. However the other doesn't work and I cannot understand the reason.
Probably I'm doing something very stupid, but I'm unable t
Hello,
I've recently upgraded from PyQt4.1.1 to 4.3.4-snapshot-20080408. Now, an
application that worked fine with the older version fails when trying to save
QColor or QFont values via QSettings.setValue method. In these cases the
following is printed to console:
QVariant::save: unable to sav
OK.
Thanks a lot for your answers.
El Friday 07 March 2008 Phil Thompson escribió:
> On Friday 07 March 2008, Vicent Mas wrote:
> > Hi again,
> >
> > I was wondering if PyQt3 applications can be distributed under GPL v3. Is
> > it possible? Or only GPL v2 is support
Hi again,
I was wondering if PyQt3 applications can be distributed under GPL v3. Is it
possible? Or only GPL v2 is supported for PyQt3?
Vicent
--
::
Share what you know, learn what you don't
___
PyQt mailing listPyQt@riverbankcomputing.c
Hello,
I'have just seen that, since January, Trolltech releases Qt under GPL v3
license. Does it apply to PyQt4 too?
TIA
--
::
Share what you know, learn what you don't
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverban
Hi,
I've found a performance problem in the QHeader.setLabel method. I've an
application that makes an intensive use of this method. It is written
in PyQt 3.15 (I know, I should move to PyQt4, but I'm too busy at the
moment :( When I run the application in PyQt 3.17 the performance falls
drast
El Friday, 2 de March de 2007 13:06 [EMAIL PROTECTED] escribió:
> Hi,
>
> I've just installed eric4 and tried it. Really impressive.
> Unfortunately Python autoindentation is not working. In the
> Preferences dialog 'Auto indentation' and 'Auto indentation after :'
> checkboxes are both checked. Is
Hi everyone.
I am trying to use py2app to create an application bundle out of a
binary signed with VendorID, generated out of a Python script. Using
py2app on the unsigned script seems to work without problems, and the
generated app works fine. However, we can't figure out how to make
py2app
Hello,
I've a pyqt application that runs fine in Linux and Windows but not in
Mac OS X. The following problems appear in the Application menu of the
menu bar:
- the name of the application menu is Python instead of the name of my
application. Is it possible to fix this problem?. I've googled wi
El Thursday 08 July 2004 16:30, Phil Thompson escribio:
>
> Works for me - once all the syntax errors in the above fragment are fixed
> (and the incorrect call to the QWindowsStyle ctor is replaced by a call to
> QWindows.drawControl()).
>
> It's always better to post a complete script - like the a
Hi,
I'm trying to create a simple custom style (newbie with styles) but I cannot
to make it work, so I need some help. This is what I've done.
customstyle script
-
from qt import *
class CustomStyle(QWindowsStyle):
def __init__(self) :
apply(QWindo
El Wednesday 23 June 2004 07:10, Jim Bublitz escribio:
> ...
> If your application allows it, you can operate the table with fixed number
> of cells/fixed amount of memory, reload the cells as necessary (don't
> destroy/construct new cells), and overload the navigation methods (cursor
> up/down, pa
Hi,
I'm working on a viewer for large tabular datasets. The underlying application
from which my viewer read data is a hierarchical database that can deal with
really large datasets (tipically too large to be managed with relational
databases). Following the advises of Qt documentation and the Q
On Monday 19 April 2004 07:06, Phil Thompson wrote:
> On Sunday 18 April 2004 8:55 pm, Vicent Mas wrote:
> > Hi,
> > I'm trying to use QSettings.setPath method for configuring my application
> > but it seems to be completely ignored. For in
Ooops!
I'm running a Linux box with
Python 2.3.3
Qt 3.2.3
PyQt 3.10
SIP 4.0rc2
--
Share what you know, learn what you don't
pgp0.pgp
Description: signature
Hi,
I'm trying to use QSettings.setPath method for configuring my application but
it seems to be completely ignored. For instance, this simple script:
--
#!/usr/bin/env python
from qt import *
c = QSettings()
c.setPath('MyCompany.com',
66 matches
Mail list logo