QtDragon DRO decimal places
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2047
02 Apr 2021 23:53 #204582
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
I wonder if this is common enough to add as a settings option?
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
Less
More
- Posts: 129
- Thank you received: 8
03 Apr 2021 15:58 #204632
by turbostew
Replied by turbostew on topic QtDragon DRO decimal places
Well IMHO, for a router 10th of thousandths is just annoying to see, but for a mill tenths (of a thousandths) is a must. Maybe a ultra-precision mini mill might go out one more place.
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
Less
More
- Posts: 129
- Thank you received: 8
08 Nov 2022 20:54 - 08 Nov 2022 21:01 #256242
by turbostew
Replied by turbostew on topic QtDragon DRO decimal places
It has been a 1.5 years since last post, seems things have changed. How do I change (preferred method) QtDragon DRO precision in the latest master?
Last edit: 08 Nov 2022 21:01 by turbostew.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2047
09 Nov 2022 14:04 #256289
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
What version of linuxcnc are you using?
In master this should work in your stylesheet file. you can edit it from the built on editor in qtdragon. press f12 to launch it.
change the template to what you like (as before):
DROLabel {
font: 25pt "Lato Heavy";
qproperty-imperial_template: '%9.4f';
qproperty-metric_template: '%10.3f';
qproperty-angular_template: '%11.2f';
}
In master this should work in your stylesheet file. you can edit it from the built on editor in qtdragon. press f12 to launch it.
change the template to what you like (as before):
DROLabel {
font: 25pt "Lato Heavy";
qproperty-imperial_template: '%9.4f';
qproperty-metric_template: '%10.3f';
qproperty-angular_template: '%11.2f';
}
The following user(s) said Thank You: turbostew
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2047
10 Nov 2022 04:38 - 10 Nov 2022 04:39 #256317
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
For completeness here is hoe to set origin/tool offset view with stylesheets too.
ToolOffsetView {
font: 20pt "Lato Heavy";
qproperty-imperial_template: '%9.1f';
qproperty-metric_template: '%10.1f';
}
OriginOffsetView {
font: 12pt "Lato Heavy";
qproperty-imperial_template: '%9.1f';
qproperty-metric_template: '%10.1f';
}
ToolOffsetView {
font: 20pt "Lato Heavy";
qproperty-imperial_template: '%9.1f';
qproperty-metric_template: '%10.1f';
}
OriginOffsetView {
font: 12pt "Lato Heavy";
qproperty-imperial_template: '%9.1f';
qproperty-metric_template: '%10.1f';
}
Last edit: 10 Nov 2022 04:39 by cmorley.
The following user(s) said Thank You: turbostew
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
Less
More
- Posts: 129
- Thank you received: 8
18 Nov 2022 05:21 - 18 Nov 2022 05:22 #257008
by turbostew
Replied by turbostew on topic QtDragon DRO decimal places
Thanks!
One more thing, I want to change my feedrate DRO to add a decimal place. Whole numbers in inches is too granular....
One more thing, I want to change my feedrate DRO to add a decimal place. Whole numbers in inches is too granular....
Last edit: 18 Nov 2022 05:22 by turbostew.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2047
18 Nov 2022 18:21 #257052
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
I pushed the fix to this to 2.9 but if you don't want to update this should do the same:
#status_jog_linear{
qproperty-textTemplate: '%.1f';
}
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
Less
More
- Posts: 129
- Thank you received: 8
18 Nov 2022 20:38 #257063
by turbostew
Replied by turbostew on topic QtDragon DRO decimal places
Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7762
- Thank you received: 2047
18 Nov 2022 22:25 #257074
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
status_act_feedrate{
qproperty-textTemplate: '%.1f';
}
qproperty-textTemplate: '%.1f';
}
The following user(s) said Thank You: turbostew
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
Less
More
- Posts: 129
- Thank you received: 8
20 Nov 2022 19:52 #257175
by turbostew
Replied by turbostew on topic QtDragon DRO decimal places
Thanks! Took me a while but by deduction I figured out the complete code is:
StatusLabel#status_act_feedrate{
qproperty-textTemplate: '%.1f';
}
StatusLabel#status_act_feedrate{
qproperty-textTemplate: '%.1f';
}
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.111 seconds