[PyQt] QTableView not showing vertical scroll bar

2012-11-22 Thread Massi
Hi everyone, in my script I have a table view showing one column and few rows (one or two) in which each cell contains lots of data. When the data in the cells is too big it cannot be displayed in the table area, so I expect that a vertical scrollbar comes in, but this does not happen. Here is

[PyQt] QTableView performance issue

2012-11-02 Thread Massi
Hi everyone, I've got a QTreeView with a custom model which has to handle several items (say 1 million). I've set the setUniformRowHeights property to True, so when the tree is set up the scrolling is very fluid. The problem arises when I try to change the ordering of the items. The test scrip

[PyQt] Dockable QTabWidget

2012-07-17 Thread Massi
Hi everyone, I’m trying to develop a dockable version of a QTabWidget, since I saw that pyqt does not support it natively. Up to now I tried to realize it using the QDockWidget class, here is some code which shows what I did: from PyQt4.QtCore import * from PyQt4.QtGui import * class DockTabWi