Re: [PyQt] Model/View programming

2009-09-21 Thread David Boddie
On Mon, 21 Sep 2009 13:20:33 +0200, Lukas Hetzenecker wrote: > When I get a reply from the phone (some items) I don't know how to get the > parent QModelIndex for the directory (internal pointer). Currently I store > the index in my internal class and update it on every createIndex call - is > the

Re: [PyQt] Changing the height of the QTabbar in QTabWidget

2009-09-21 Thread David Boddie
On Mon Sep 21 18:21:45 BST 2009, Chris Dunscombe wrote: > I would like the following: > > - > > | tab1 | tab2 | Lot of text | > | | | for tab3| > > - Maybe this code can be adapted to do what you want: http:/

[PyQt] Changing the height of the QTabbar in QTabWidget

2009-09-21 Thread Chris Dunscombe
Hi, I have some tabs in a QTabWidget that have a "long" text description so I would like to increase the height of the tabBar. See below: -- | tab1 | tab2 | Lot of text for tab3 | - |

[PyQt] Problem catching exception from SIP-wrapped function

2009-09-21 Thread Arve Knudsen
Hi I have run into this problem where a C++ exception is not correctly translated into Python on Linux (it works under VC++ on Windows). The exception is apparently not caught as it should, but looking at the SIP-generated sourcecode I cannot see why (there is a try/catch block for the exception).

Re: [PyQt] Stacking QWidgets vertically?

2009-09-21 Thread Mark Summerfield
On 2009-09-21, Mark Summerfield wrote: > On 2009-09-21, Kurt Schwarz wrote: > > A QSplitter isn't what I am looking for because "A splitter lets the > > user control the size of child widgets by dragging the boundary > > between the children." I don't want the user to be able to re-size the > > wid

Re: [PyQt] Callback.

2009-09-21 Thread David Boddie
On Mon Sep 21 15:57:22 BST 2009, Marcus Tenório. wrote: > anyone knows how todo a callback fuction in pyqt in a python code, i really > search, but i didnt find nothing, only a feel words from signal and slots. Can you say a little bit more about what you are trying to do? Then maybe we can make

[PyQt] Callback.

2009-09-21 Thread Marcus Tenório .
hello, anyone knows how todo a callback fuction in pyqt in a python code, i really search, but i didnt find nothing, only a feel words from signal and slots. Thanks : ) -- Marcus Tenório "And I Know, even as we face this hungry beast and his corps, he may take our lives here today, but he will

Re: [PyQt] Stacking QWidgets vertically?

2009-09-21 Thread Kurt Schwarz
A QSplitter isn't what I am looking for because "A splitter lets the user control the size of child widgets by dragging the boundary between the children." I don't want the user to be able to re-size the widgets, sorry if I wasn't clear about this before. Here is a picture to better illustrate wha

[PyQt] Model/View programming

2009-09-21 Thread Lukas Hetzenecker
Hello, i have some problems with my first attempt to use Model/View programming: I tried to create a Model for a directory list. The folders are located on a mobile phone and I get the content over Obex and Bluetooth, so the communication can be really slow -> The model should be asynchronous.