0

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?

RAM
  • 2,257
  • 2
  • 19
  • 41

1 Answers1

1

You can use QCheckBox::setLayoutDirection(Qt::LayoutDirection direction):

auto chkB = new QCheckBox("some example");
 chkB->setLayoutDirection(Qt::RightToLeft);
Mat
  • 461
  • 4
  • 14