One of the first problems in working with The
, which are trying to solve, start to work with this widget - setting QCheckBox in the middle of the cell. The fact that the standard check box in
checkbox attached to the left edge of the cell, while the right side is given for explanatory text. But the text may not be, but the area still remains. But at the same time it allows you to set
in his cell widgets, which we use to solve this problem.
This article is an extension of a previous article on working with
, therefore, to see the full code of the project I encourage you also to the article. This article provides only the code necessary to solve the problem.
Project Structure for QCheckBox center
Project structure remains the same as in the
The form for the application window QCheckBox
In the main application will be placed: