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
|
||
|---|---|---|
| .. | ||
| books | ||
| cachedtable | ||
| doc | ||
| drilldown | ||
| masterdetail | ||
| querymodel | ||
| relationaltablemodel | ||
| sqlbrowser | ||
| sqlwidgetmapper | ||
| tablemodel | ||
| CMakeLists.txt | ||
| README | ||
| connection.h | ||
| 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.