This is a question for the #FreeCAD #macro people: I’ve created a dialog box with 3 radio buttons. The correct default button is selected, but I can’t figure out why the first button is highlighted? I’ve been reading through the documentation for QRadiobutton, but I can’t figure out why the toggled button isn’t highlighted.
Anyone have any ideas?
@chrishuck No idea, but that highlight is called focus and QRadioButton seems to have some methods related to it.
@chrishuck Oh, and Qt Python docs for QRadioButton might only list methods specific to QRadioButton, not the inherited ones.
@elgregor Thanks for the tips and the link to all of the members. I didn’t look up the tree to QWidget to see that it has the .setFocus() method that QRadioButton inherits. I learned something new today!
I’m more of a casual programmer that isn’t as fluent in how a lot of modern documentation is set up to figure out how to do what I want. I learn a little more each time, but I’d never done any real GUI programming for my FreeCAD macro until I wanted it for this new version.