Re: [PyQt] Synchronized scrolling between two tables

2011-11-01 Thread Scott Price
According to the documentation: QTableView.scrollTo (*self*, QModelIndex *index*, QAbstractItemView.ScrollHint *hint* = QAbstractItemView.EnsureVisible) I assume you would have to create a QModelIndex based on the first tables' scrolled to record, and then feed it into the second table via a k

[PyQt] 256 record limit with QOdbc working with MS Access

2009-11-05 Thread Scott Price
Hello, Using Python 2.6, PyQt 4.4.4 on Windows XP sp3. I can't seem to find this information in the regular documentation, nor does Google seem to help. MS's website is not helpful either researching whether this is a limit set from within Access for outside 'access' (bad pun) using odbc.

[PyQt] bug in QTabWidget.indexOf() method?

2008-09-09 Thread Scott Price
So I have a tab widget, which when constructed gets a scroll area for page/tab one. Works fine. During a later process I add another tab with a similar scroll area. Works fine. A separate process uses the indexOf() method to search for the second scroll area that may not have been added yet. Wh

RE: [PyQt] Toolbar widget sizing problems

2008-09-05 Thread Scott Price
Well, what you say makes sense and I follow your reasoning, however it still doesn't seem to work for making the line-edit show the size I want it to. Giving the group-box an explicit parent doesn't work, that is. The only thing I could find in the documentation regarding QToolBar.addWidget() is

RE: [PyQt] Toolbar widget sizing problems

2008-09-05 Thread Scott Price
Some more poking around revealed that while QLineEdit.setGeometry() and QLineEdit.setSizePolicy() are disregarded by the toolbar, that QLineEdit.setFixedSize() _is_ respected! It results in the appropriately sized line-edit being shown centered in the middle of the toolbar, with its label on the f

RE: [PyQt] Painting an arc... can't be that hard?

2008-09-05 Thread Scott Price
Now that's a 'yeesh' moment if I've ever seen one! Thanks! After reading the QPainter, QPaintDevice, QPaintEngine, etc documentation assuming it was something to do with one of those classes, it never occurred to me that it could be the scroll-area... The reason for using a scroll-area in the

[PyQt] Painting an arc... can't be that hard?

2008-09-05 Thread Scott Price
So, using PyQt4/WindowsXP: I'm attempting to adapt the basic drawing example for the simple purpose of drawing an arc on the background of a widget. The following code opens a main window with a child widget inside, but doesn't draw the arc. Probably something simple that I'm missing, but I ca

[PyQt] Toolbar widget sizing problems

2008-09-05 Thread Scott Price
Hi there, I'm running WindowsXP. So using PyQt4x I set up a toolbar, add a line edit to it, set the geometry and sizepolicy of the line-edit widget, and watch as the toolbar promptly ignores any directions I give the child widget! Is there a secret to making the toolbar respect the size polici

RE: [PyQt] help learning pyqt

2008-09-04 Thread Scott Price
Rance, Your code works as intended on my Windows XP sp2 machine. Not sure why or what it's not doing on your machine. Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt