[PyQt] Fix: layoutStretch property is not compiled by pyuic4

2010-01-27 Thread luper rouch
The layoutStretch property of QHBoxLayout and QVBoxLayout in designer should be compiled to layout.setStretch() calls. The code to do this is already present in PyQt4.uic.uiparser, but never triggered because of an error in the types hierarchies defined in PyQt4.uic.Compiler.qtproxies (QHBoxLayout

Re: [PyQt] Trouble reading a model index from an "untouched" combo box

2010-01-27 Thread Andreas Pakulat
On 27.01.10 17:33:18, Claudio Felix wrote: > > Well, the combobox has initially no selected/current entry - AFAIK. Only > > once you select one it'll be set. Hence the invalid index. > > > > However a setCurrentIndex with a value != 0 on the combobox should > > change that already I think. > > > >

Re: [PyQt] Trouble reading a model index from an "untouched" combo box

2010-01-27 Thread Claudio Felix
> Well, the combobox has initially no selected/current entry - AFAIK. Only > once you select one it'll be set. Hence the invalid index. > > However a setCurrentIndex with a value != 0 on the combobox should > change that already I think. > > Another thing in your case is that box.view().currentInde

Re: [PyQt] Trouble reading a model index from an "untouched" combo box

2010-01-27 Thread Andreas Pakulat
On 27.01.10 09:08:13, Claudio Felix wrote: > 2010/1/27 Andreas Pakulat : > > On 26.01.10 17:41:40, Demetrius Cassidy wrote: > >> I don't think you need to use the view pointer at all - it's > >> returning QAbstractItemView *, which I would assume it would need to > >> be casted to the proper class

[PyQt] Error buliding QScintilla 2.2 Python bindings

2010-01-27 Thread Darryl Wallace
Hello, I'm trying to build QScintilla 2.2 (same error occurs with 2.3) with Python bindings. I am using Windows MSVC2008, Qt 4.5.3, PyQt4.4.4. QScintilla builds properly. The QScintilla C++ example builds and runs. When running nmake on the Python bindings, it raises an error in the file sipQsc

[PyQt] help with qscrollarea for a stacked widget

2010-01-27 Thread NISA BALAKRISHNAN
i am new to pyqt. i have created my gui using Qtdesigner4 now i want to add a vertical scrollbar to stacked widget which is placed on a frame. when i do it as follows the stacked widget forms a new window. i want it in the existing main window. self.scrollarea=QtGui.scrollArea() self.scrollarea.se

Re: [PyQt] Trouble reading a model index from an "untouched" combo box

2010-01-27 Thread Claudio Felix
2010/1/27 Andreas Pakulat : > On 26.01.10 17:41:40, Demetrius Cassidy wrote: >> I don't think you need to use the view pointer at all - it's >> returning QAbstractItemView *, which I would assume it would need to >> be casted to the proper class in C++. If that's so, by design the >> Abstract class

Re: [PyQt] Trouble reading a model index from an "untouched" combo box

2010-01-27 Thread Demetrius Cassidy
Just took a peak at QAbstractItemView class and your right it's fully implemented. The view is asking the selectionModel what the current selected index is, and if it has no selection model (not sure if that's even possible) it returns an invalid QModelIndex. QComboBox.currentIndex is just aski