In the PolyLineBreakSymbol ui (named changed to stop conflict with LineBreakSymbol ) I have a checkbox, a spinbox and a pair of radiobuttons in the ui of Options toolbar, when I exit the tool, the state of the radiobuttons is not being saved, the checkbox and spinbox states are being saved. I've deleted the PolyLineBreakSymbol section in Qcad3.conf, and on restarting Qcad, the state of the radiobuttons is saved only once, ie I start PolyLineBreakSymbol, draw a break, exit the tool, restart the tool, radiobutton state was saved, change the state, draw a break and exit the tool, the next time I start the tool the radiobutton state is not as the previous session.
I think it's a Linux thing as I've tried it in Windows (running under Wine) and the radiobutton states are saved every time.
[solved]Saving the state of widgets in Options toolbar
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
[solved]Saving the state of widgets in Options toolbar
Last edited by petevick on Mon Mar 08, 2021 9:35 pm, edited 1 time in total.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Saving the state of widgets in Options toolbar
Can you try putting the radio buttons into a button group:
1. Select both radio buttons
2. Right-click on one of them and choose
Assign to button group > New button group
You also might want to give the button group a meaningful name. Make sure that the button group is set to "exclusive", so only one of the radio buttons can be checked.
1. Select both radio buttons
2. Right-click on one of them and choose
Assign to button group > New button group
You also might want to give the button group a meaningful name. Make sure that the button group is set to "exclusive", so only one of the radio buttons can be checked.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Saving the state of widgets in Options toolbar
Thanks Andrew, I'll get on to it.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Saving the state of widgets in Options toolbar
Pete,
In a qcad.ini it looks like it is stored fine.
Exclusive QRadiobutoons are stored in bulk.
The name of checked one is stored.
Regards,
CVH
In a qcad.ini it looks like it is stored fine.
Exclusive QRadiobutoons are stored in bulk.
The name of checked one is stored.
Regards,
CVH
Code: Select all
[PLineBreakSymbol]
VisibleInMenu=true
VisibleInToolBar=true
VisibleInCadToolBar=true
VisibleInMatrixPanel=true
RemoveSegment=true
BreakHeight=3
IncSeg=IncSeg
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Saving the state of widgets in Options toolbar
I love quick fixes. That did the job, thanks Andrew
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6