[PyQt] How to visually remove row when doing OnManualSubmit on an QSqlTableModel?

2010-01-01 Thread Arthur Pemberton
I have subclassed QtSql.QSqlRelationalTableModel and I am using OnManualSubmit so that I can use an Okay/Cancel on my dialog box. However, when I attempt to removeRows on the model the status returned is True, but there is no visible change in my QTreeView. I have attached the subclassed model. Th

[PyQt] MYSQL driver problem

2010-01-01 Thread bar tomas
Hi, I installed the PyQt 4.6 for Python 2.6 binary bundle for windows. I'm also using Mysql 5.1. I can connect to a Mysql database with PyQt. But when trying to execute a query I get the following error message (captured through lastError()) Using unsupported buffer type: 12 (parameter: 3) I am

Re: [PyQt] Looking for a sample drawling tool in PyQt4

2010-01-01 Thread Simon Hibbs
I think DiagramScene is the best place to start, I used it as the starting point for my own application, developing my own objects and menus in parallel with the existing ones until finally I was able to delete all the old code. The existing code for creating objects should be fine for you, with g

[PyQt] Looking for a sample drawling tool in PyQt4

2010-01-01 Thread Arthur Pemberton
I am in search of a sample shape drawing tool utilizing QGraphicsScene. I am especially interested in how selecting of shapes, moving and resizing is handled.The closest I have found so far is the supplied "diagram scene" example. All I really need to be able to do is create and manipulate labelle