qt6-bb10/examples/sql
Marc Mutz 2f6684ee33 sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box
The old code connected to the wrong signal and therefore had to write
a custom slot to perform the disabling of the group-box.

The new code simply connects the QCheckBox::toggled(bool) signal to
the directly-compatible QWidget::setDisabled(bool) slot, removing the
need for a custom slot.

Also move the connection into the .ui file, so it works already when
checking the form in QtDesigner.

Amends 2690822428, which, however, only
inherited the issues from older code.

Change-Id: Ia834f92de270bb7b18981273188f6e5b6cd457a2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 53826d1cde26f825d1983476c6697f72130e351f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit f2b88b3225e6267126b722c50cc781159b327e4d)
2025-01-02 19:19:33 +00:00
..
books CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
cachedtable CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
doc Update the books example 2023-12-14 20:06:32 +01:00
drilldown CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
masterdetail Examples/Sql/Masterdetail: Fix deleting rows 2024-09-08 10:08:28 +00:00
querymodel CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
relationaltablemodel CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
sqlbrowser sqlbrowser example: use idiomatic Qt [1/3]: disabling group-box 2025-01-02 19:19:33 +00:00
sqlwidgetmapper CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tablemodel CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00
connection.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql.pro Examples: Remove remains of wince 2017-07-14 17:30:51 +00:00

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.