diff options
Diffstat (limited to 'examples3/SQL/README')
-rw-r--r-- | examples3/SQL/README | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/examples3/SQL/README b/examples3/SQL/README index 9dfc5d4..6e28f6e 100644 --- a/examples3/SQL/README +++ b/examples3/SQL/README @@ -1,27 +1,27 @@ -This directory contains some translated sql examples from Qt 3.x. +This directory contains some translated sql examples from TQt 3.x. runform1.py, form1.ui: - A simple designer generated QDataTable. Run "pyuic form1.ui -o form1.py". + A simple designer generated TQDataTable. Run "pyuic form1.ui -o form1.py". runform2.py, form2.ui: - A simple designer generated QDataBrowser. Run "pyuic form2.ui -o form2.py". + A simple designer generated TQDataBrowser. Run "pyuic form2.ui -o form2.py". sqlcustom1.py: - QSqlForm based form with a simple custom editor forcing all input to + TQSqlForm based form with a simple custom editor forcing all input to be uppercase sqltable4.py: - Custom QDataTable with reimplemented paintField method, combined with - a QComboBox based custom field editor (StatusPicker), gathering its + Custom TQDataTable with reimplemented paintField method, combined with + a TQComboBox based custom field editor (StatusPicker), gathering its items from a different table (status) and a calculated column (monsalary). - Note, that QSqlEditorFactory based field editors are somewhat restricted, - because Qt's Q_PROPERTY feature isn't supported, yet. I've circumvented + Note, that TQSqlEditorFactory based field editors are somewhat restricted, + because TQt's Q_PROPERTY feature isn't supported, yet. I've circumvented this limitation by choosing the status table ids corresponding to the - index in the QComboBox. + index in the TQComboBox. sqlsubclass5.py: @@ -34,11 +34,11 @@ sqlsubclass5.py: runsqlex.py, sqlex.ui, sqlex.ui.h, connect.ui, connect.ui.h: - This one is a most advanced example, showing the use of a QSqlCursor - driven by QSqlQuery and iterating through database tables and fields. + This one is a most advanced example, showing the use of a TQSqlCursor + driven by TQSqlQuery and iterating through database tables and fields. Definitely worth a look. -Unfortunately you will have to make sure that these prerequisites are met +Unfortunately you will have to make sure that these preretquisites are met before trying the examples: - Install MySQL or PostgreSQL and any development packages @@ -49,7 +49,7 @@ before trying the examples: - For MySQL, run: mysql -u user -p password < testdb_mysql.sql - For PostgreSQL, run: psql -U user template1 -f testdb_pg.sql - - Build Qt with the mysql and/or psql modules activated. + - Build TQt with the mysql and/or psql modules activated. Now you should be ready for the fun part. You can run dbconnect.py from a command line and try to connect to the database. If all went well, @@ -64,7 +64,7 @@ DB_PASSWORD = "pass" The dbconnect.py script is generated from dbconnect.ui, which was created with qt's designer. You can find it also in Boudewijn Rempt's book -"GUI Programming with Python, using the Qt Toolkit". Although you won't find +"GUI Programming with Python, using the TQt Toolkit". Although you won't find the SQL widgets discussed there, for the simple reason of the book being written before they appeared, it is a valuable source for anybody new in this area. |