QtDragon DRO decimal places

More
3 years 11 months ago - 3 years 11 months ago #256242 by turbostew
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: 3 years 11 months ago by turbostew.

Please Log in or Create an account to join the conversation.

More
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';
}
The following user(s) said Thank You: turbostew

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 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';
}
Last edit: 3 years 11 months ago by cmorley.
The following user(s) said Thank You: turbostew

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #257008 by turbostew
Thanks!

One more thing, I want to change my feedrate DRO to add a decimal place. Whole numbers in inches is too granular....
Last edit: 3 years 11 months ago by turbostew.

Please Log in or Create an account to join the conversation.

More
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 or Create an account to join the conversation.

More
3 years 11 months ago #257063 by turbostew
 

I mean this readout....

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.084 seconds
Powered by Kunena Forum