qtbase/examples/sql
Ed Cooke a2ff3969fd Update the books example
Remove the .ui file and write the equivalent implementation.

Replace the outdated star icons with new star icons. 5 empty stars
are now provided and filled in depending on the rating. The new stars
are SVG, however, we do not use an SvgRenderer as we cannot use the
QtSvg API from QtBase directly. It is safe to assume the SVG image
loading plugin is present, the worst case scenario would be empty icons,
but it would still build. We instead use QIcon.

For the rating, draw the star icons in a combobox, replacing the old spinbox.

Update the layout by moving the table view to the bottom, and
arranging the input fields at the top.

The scrollbar policies have been set to Qt::ScrollBarAsNeeded for the table view.

Fixes: QTBUG-118476
Change-Id: I27c13534ab06e17531d155469a1cc6e7e05197af
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit 76b2852b7c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit a00c80e1ce)
(cherry picked from commit c4366e477d)
2023-12-15 05:25:57 +00:00
..
books Update the books example 2023-12-15 05:25:57 +00:00
cachedtable Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
doc Update the books example 2023-12-15 05:25:57 +00:00
drilldown Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
masterdetail Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
querymodel Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
relationaltablemodel Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sqlbrowser Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sqlwidgetmapper Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
tablemodel Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
CMakeLists.txt Examples: Use Qt6:: to qualify Qt CMake packages 2022-11-17 19:59:11 +01:00
README
connection.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql.pro

README

Qt provides extensive database interoperability, with support for products
from both open source and proprietary vendors.

SQL support is integrated with Qt's model/view architecture, making it easier
to provide GUI integration for your database applications.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.