qt6-bb10/examples/sql
Marc Mutz 9be434b3b1 sqlbrowser example: use unique_ptr to hold m_ui
The old code used manual memory mangement (raw new/delete) to
(de)allocate the Ui struct. This is so 80s.

Use an owning smart pointer to manage the memory. Ordinarily, this
would have been QScopedPointer, but seeing as that doesn't have a
create() method to hide the raw new, use std::unique_ptr and
std::make_unique() instead.

Amends 2690822428.

Change-Id: Icabb9154eb38630855e14094b958af0214516f6b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 0da2c2c4ef2219967db87021eece2a60b6e207af)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 88600c30964bc1d11ed09e3dddd4cbe4477f02d3)
2025-01-02 19:19:54 +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 unique_ptr to hold m_ui 2025-01-02 19:19:54 +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.