Does Qt offer a way to configure the layout of a QCheckBox with Qt Stylesheets so that the text remains aligned to the right but the checkbox is placed on the far right?
Asked
Active
Viewed 507 times
1 Answers
1
You can use QCheckBox::setLayoutDirection(Qt::LayoutDirection direction)
:
auto chkB = new QCheckBox("some example");
chkB->setLayoutDirection(Qt::RightToLeft);

Mat
- 461
- 4
- 14