I have a checkbox with some text and I have a label underneath this checkbox. How can I align this label so it aligns with the text on the checkbox.
What I want:
[ ] insert_text
some_text
What I have:
[ ] insert_text
some_text
I have a checkbox with some text and I have a label underneath this checkbox. How can I align this label so it aligns with the text on the checkbox.
What I want:
[ ] insert_text
some_text
What I have:
[ ] insert_text
some_text
Copyright © 2021 Jogjafile Inc.
A possible solution is to add a padding to the left side of the QLabel of a suitable width, to calculate the width I have created a custom QCheckBox that returns the width of the indicator but to that amount you must add a couple of pixels that represent the space between the indicator and the text: