Learning to work with new QTVCP screens and handler

More
5 years 10 months ago #192421 by cmorley
I just tested the sample config qtvcp_screens/qt_cnc_9axis

It demonstrates all linuxcnc axes. A and B show rotation C rotates about Z so is hard to see.
So i think it works.

But maybe wrongly.
Could you post the INI file?

Please Log in to join the conversation.

More
5 years 10 months ago #192466 by Pro_El
Yes i try with qtvcp_screens/qt_cnc_9axis and rotation on A and B axis shown on display and that is ok. But with GCodeGraphic and with QTDragon did not rotate A axis

Attachment not found

Here is my ini and cannot see any error. Can you try on build in QTDragon on 2.9 master.

Thanks Chris

Bojan

Please Log in to join the conversation.

More
5 years 10 months ago #192471 by Pro_El
I just find out. I enter GEOMETRY = XYZA in DISPLAY section in ini file and rotations starts.

Thanks Chris

Please Log in to join the conversation.

More
5 years 10 months ago #192472 by cmorley
Oh thats great! - from your fix I looked up the code in Qtvcp and AXIS.
In AXIS, GEOMETRY defaults to 'XYZABCUVW'

In Qtvcp's gcodedisplay it defaults to 'XYZ"

I'll see about changing the default in Qtvcp.
Thanks.

Chris

Please Log in to join the conversation.

More
5 years 9 months ago #193674 by Pro_El
Hello Chris,

I want to now is it possible to add Qdesigner class to handler file
QGraphicsScene Class
QGraphicsView Class
I am building screen for automatic saw and i need to add custom 2d shapes to the screen


Thanks Chris and HAPPY NEW YEAR !!

Please Log in to join the conversation.

More
5 years 9 months ago #193698 by cmorley
If there is a python module for it you can add it programmatically.
.

Happy new year!

Please Log in to join the conversation.

More
5 years 9 months ago #193930 by Pro_El
I found some modules and program some 2d shapes like circle and rectangle.
But i am still learning and try to find the best solution. Can you suggest what is the best native function for python or module so i can use to draw 2d shapes inside handler.py file an if is possible to see it on qt graphicview widget in designer.

Thanks Chris

Please Log in to join the conversation.

More
5 years 9 months ago #193935 by cmorley
Simple like Jim's hole circle utility?

Attachment not found



He just uses QPaint on a plain widget.

This gives a rough idea:
zetcode.com/gui/pyqt5/painting/

here is another one:

www.learnpyqt.com/tutorials/bitmap-graphics/

Please Log in to join the conversation.

More
5 years 9 months ago #193986 by Pro_El
Thanks Chris. I will centrally try this suggestions.

Please Log in to join the conversation.

More
5 years 9 months ago #194016 by cmorley
Jim's gcode utility is in linuxccnc master :
github.com/LinuxCNC/linuxcnc/blob/master...ility/hole_circle.py

Note in the examples from the net - you often see:

Not in example code on the often has some similar to this (note super)
Code:
class MainWindow(QtWidgets.QMainWindow): def __init__(self): super().__init__()

Needs to be changed to similar to this python2 version of super(again note super)
Code:
class MainWindow(QtWidgets.QMainWindow): def __init__(self): super(MainWindow, self).__init__()

Please Log in to join the conversation.

Time to create page: 0.132 seconds
Powered by Kunena Forum