[PyQt] Help with overriding validator and upper casing input

2009-03-18 Thread Rasha
Hello. I'm new to PyQt, so dont be to hard on me. I need help with creating a QRegExpValidator which would validate my input and would make it uppercase. I came up with this by browsing this list and searching the net and Qt documentation, but it's not working. class

Re: [PyQt] mouse pressed event with qt 4.5

2009-03-18 Thread Phil Thompson
On Wed, 18 Mar 2009 00:29:21 +0100, Thomas Espenhain thomas.espenh...@googlemail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Andreas, thanks for your answer and sorry for the missing example .. here it comes: import sys from PyQt4 import QtCore, QtGui app =

[PyQt] Re: dragging a QGraphicsSvgItem

2009-03-18 Thread Matt Smith
On Wed, 2009-03-18 at 09:15 +, pyqt-requ...@riverbankcomputing.com wrote: From: Wolfgang Rohdewald wolfg...@rohdewald.de Subject: [PyQt] dragging a QGraphicsSvgItem To: pyqt@riverbankcomputing.com Message-ID: 200903180430.09934.wolfg...@rohdewald.de Content-Type: text/plain;

Re: [PyQt] mouse pressed event with qt 4.5

2009-03-18 Thread Thomas Espenhain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry that's right! QMainWindow have to been replaced by QWidget. But the result is the same ... Thanks for the hint ... Am 18.03.2009 um 10:14 schrieb Phil Thompson: On Wed, 18 Mar 2009 00:29:21 +0100, Thomas Espenhain

[PyQt] Re: dragging a QGraphicsSvgItem

2009-03-18 Thread Wolfgang Rohdewald
On Mittwoch, 18. März 2009, Matt Smith wrote: I use a graphics scene and I never have to explicitly paint anything. It seems like you could create a pixmap item when you load the svg then you wouldn't have to render it again later. My view scales the svg images matching to the available space,

Re: [PyQt] QTableView header connection

2009-03-18 Thread Till Gerken
On Wed, Mar 18, 2009 at 3:40 PM, Gert-Jan gj_den_hei...@hotmail.com wrote: Class GUI:        def __init__(self):                tableWidget = QtGui.QTableWidget()                # Code to insert 5 columns and make a horizontal header)                self.connect(tableWidget.horizontalHeader,

Re: [PyQt] QTableView header connection

2009-03-18 Thread Mads Ipsen
Hey all, Since I still haven't been able to http://www.nabble.com/Sorting-column-with-QComboBox-cellwidgets-td22499840.html automatically sort a column with combo boxes , and now have another column with special sorting conditions, I'd like to manually do the sorting. The problem is that

[PyQt] Forcing a QGraphicsItem to draw on top

2009-03-18 Thread Remi McGill
I am using QGraphicsItems do display graphics. This may be a simple thing that I have missed, but how can I get one QGraphicsItem to draw on top of all others? It seems the item I am working with goes behind some items and over top others. Any suggestions? Thanks, Remi

Re: [PyQt] Forcing a QGraphicsItem to draw on top

2009-03-18 Thread Phil Thompson
On Wed, 18 Mar 2009 08:46:35 -0700, Remi McGill remi.mcg...@autodesk.com wrote: I am using QGraphicsItems do display graphics. This may be a simple thing that I have missed, but how can I get one QGraphicsItem to draw on top of all others? It seems the item I am working with goes behind some

Re: [PyQt] QTableView header connection

2009-03-18 Thread Mark Summerfield
On 2009-03-18, Till Gerken wrote: On Wed, Mar 18, 2009 at 3:40 PM, Gert-Jan gj_den_hei...@hotmail.com wrote: Class GUI: def __init__(self): tableWidget = QtGui.QTableWidget() # Code to insert 5 columns and make a horizontal header)

[PyQt] tooltips in menu: how?

2009-03-18 Thread Paolo Milani
Hi! :) I'm a newbie. I've searched in the docs, but I haven't found the solution. I want to add tooltips to menu, but it doesn't work: tooltips are not displayed. Suggestions? my system: ubuntu linux 8.10 with kde 4..2 repository. Many thanks. This is the code: #!/usr/bin/env python # -*-

[PyQt] Re: model/view/delegate: keep the index of the item during edition with a QSpinBox

2009-03-18 Thread TP
TP wrote: http://paratribulations.free.fr/help/python/integerdelegate_question.py Has someone tried my example? Julien -- python -c print ''.join([chr(154 - ord(c)) for c in '*9(9(18%.\ 91+,\'Z4(55l4(']) When a distinguished but elderly scientist states that something is possible, he is

[PyQt] QComboBox: display an item different from the chosen one in the QListView

2009-03-18 Thread TP
Hi everybody, I want to specialize a QComboBox. I take a dummy example: if there are the following choices in the QListView provided by the QComboBox: toto titi tutu I want that if the user chooses toto, to display toto has been chosen in the QComboBox. If the user chooses titi, then I want to

[PyQt] reference to container widget

2009-03-18 Thread Mario Daniel Carugno
Hi, given this code: ... child = Form() app = Framework(child) ... Ok, Form is a grid of data, and Framework includes it with addWidget. class Framework: def __init__(self, child): ... self.layout.addWidget(child) Now, can i reference a Framework's widget from a Form's instance

RE: [PyQt] postgresql

2009-03-18 Thread Stuart McGraw
From: Damien Elmes [mailto:reso...@ichi2.net] I used wxwidgets for a while for my app (http://ichi2.net/anki) which runs on Linux, Win32 and Mac. It was really painful. Compared to pyqt, there were many platform specific bugs I had to work around, and at the time wxwidgets' rich text widget

Re: [PyQt] postgresql

2009-03-18 Thread Nahuel Defossé
Stuart: I was kind of hoping that PyQt's Qsql classes could save me some work, but AFAICT, I need a Qsql.Database object to use them and but a Postgreql driver is not available in binary for Windows. You have to compile Qt and PyQt with Postgre suport on windows. I had to do this for MySQL

Re: [PyQt] postgresql

2009-03-18 Thread Damien Elmes
So an alternative would be to reimplement the Qsql classes using based on the Python DBAPI protocol, but maybe the cost/benefit ratio for that is too high? I'd say far to high. Qt has it own philosophy with databases, if you want snappy grids, and automatic updates and all that stuff, i'd