[PyQt] stylesheet sub-controlls

2010-03-24 Thread Lennart Jansen
Hi, are there stylesheet sub-controlls in pyqt like in qt? For example the widget Qprogressbar in qt got the sub-controll chunk, but i cant find anything like it in pyqt. I wish all of you a good day! -- Sicherer, schneller und einfacher. Die aktuellen Internet-Browser - jetzt kostenlos

Re: [PyQt] pythonw crash trying to run demos

2010-03-24 Thread Christoph Burgmer
Even if it seems to be a working example from the book, you might want to provide the source code for us. Make sure we can try to reproduce the problem. Can you run at least another example program to show your installation is working? Please also try to use text emails, not html. Best,

Re: [PyQt] QXmlQuery.evaluate() does'nt accept QString parameter?

2010-03-24 Thread Olivier Fournier
Phil Thompson a écrit : On Tue, 23 Mar 2010 16:34:39 +0100, Olivier Fournier o.fourn...@perigord.com wrote: Hi, I would like to use the overloaded function QXmlQuery.evaluateTo (self, QString). I raise this Error: TypeError: arguments did not match any overloaded call:

[PyQt] Run a job in background

2010-03-24 Thread dalvarez
Hello everybody, I'm starting with the PyQt programming so my knowledge on this is not very broad at the moment, then I'm asking for some help if possible :) Well, here my problem: I'm programming a GUI to collect some variables for afterwards running a long and time consuming process (like

[PyQt] How to retrieve number of fields of a query from QSqlQuery object

2010-03-24 Thread bar tomas
Hi, QSqlQuery's size method gives the number of rows retrieved with a query. But is there some way to get the number of fields (columns) of that query? Many thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] How to retrieve number of fields of a query from QSqlQuery object

2010-03-24 Thread Wolfgang Rohdewald
On Mittwoch 24 März 2010, bar tomas wrote: Hi, QSqlQuery's size method gives the number of rows retrieved with a query. But is there some way to get the number of fields (columns) of that query? Many thanks. if self.query.isSelect(): record = self.query.record() qFields =

Re: [PyQt] Run a job in background

2010-03-24 Thread Russell Valentine
On 03/24/10 08:18, dalvarez wrote: So, my questions would be: - How can I open that small window to receive and track the process? - How to connect the function (at the moment outside the main class) to the progress bar and to that small window? - How to launch the external program

Re: [PyQt] stylesheet sub-controlls

2010-03-24 Thread Nick Gaens
Hello Lennart, By subcontrols, do you mean something like: qpushbutton { color: white; } qpushbutton:pressed { color: black; } ? If so, you can set the same stylesheet to a widget as in the regular Qt, it has little to do with PyQt itself, since the stylesheet is just a string to be parsed.

Re: [PyQt] stylesheet sub-controlls

2010-03-24 Thread Lennart Jansen
Hi, thank for the response... i found the answer by myself by now XD self.baraction.setStyleSheet(QProgressBar {background-color: white; text-align: center;