- Posts: 6803
- Thank you received: 0
QtDragon DRO decimal places
5 years 6 months ago #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 to join the conversation.
5 years 6 months ago #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 to join the conversation.
3 years 11 months ago #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?
Please Log in to join the conversation.
3 years 11 months ago #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';
}
Please Log in to join the conversation.
3 years 11 months ago #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';
}
Please Log in to join the conversation.
3 years 11 months ago #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....
Please Log in to join the conversation.
3 years 11 months ago #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:
Code:
#status_jog_linear{
qproperty-textTemplate: '%.1f';
}
Please Log in to join the conversation.
3 years 11 months ago #257063
by turbostew
I mean this readout....
Replied by turbostew on topic QtDragon DRO decimal places
Attachment not found
I mean this readout....
Please Log in to join the conversation.
3 years 11 months ago #257074
by cmorley
Replied by cmorley on topic QtDragon DRO decimal places
status_act_feedrate{
qproperty-textTemplate: '%.1f';
}
qproperty-textTemplate: '%.1f';
}
Please Log in to join the conversation.
3 years 11 months ago #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 to join the conversation.
Time to create page: 0.067 seconds
