On Thu Feb 4 11:13:16 GMT 2010, Doug Bell wrote: > Why not? If the QTableWidgetItem's size hint and the QTableWidget's > size policy are set appropriately, they should be square. See the > pixelator example (included with PyQt) for an example of a square grid > (although it uses the model-view versions of the classes). > > This should be easier and more efficient than your other options.
I seem to remember that tables were used in the C++ code for this article: http://qt.nokia.com/doc/qq/qq25-undo.html Note that the author was digging a bit deeper into the model/view framework, so I wouldn't necessarily recommend that a beginner use exactly the same approach. However, it does show that it should be possible to achieve the desired result with a table and a bit of customization. David _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
