Lcnc_3dGraphics

More
2 years 5 months ago #301478 by JT
Lcnc_3dGraphics was created by JT
Just floundering about I tried to add Lcnc_3dGraphics to a QFrame container to see if by magic that would work.


Code:
def setup_plot(parent): if 'plot_widget' in parent.children: from qt5_graphics import Lcnc_3dGraphics layout = QVBoxLayout(parent.plot_widget) layout.addWidget(Lcnc_3dGraphics)

And I get this error.


Code:
layout.addWidget(Lcnc_3dGraphics) TypeError: addWidget(self, a0: QWidget, stretch: int = 0, alignment: Qt.AlignmentFlag = Qt.Alignment()): argument 1 has unexpected type 'sip.wrappertype'

JT

Please Log in to join the conversation.

More
2 years 5 months ago #301482 by JT
Replied by JT on topic Lcnc_3dGraphics
I also tried the following

Code:
def setup_plot(parent):     if 'plot_widget' in parent.children:         from qt5_graphics import Lcnc_3dGraphics         parent[code].plotter = Lcnc_3dGraphics()         layout = QVBoxLayout(parent.plot_widget)         layout.addWidget(parent[code].plotter)

And got this error

Code:
john@cave:~/github/flexgui/flexgui/src$ ./flexgui [DEFAULT][INFO]  Logging to: /home/john/default.log (logger.py:106) QWidget: Must construct a QApplication before a QWidget Aborted

So something is working up to a point.
JT

Please Log in to join the conversation.

More
2 years 5 months ago #301484 by JT
Well this will not work Flex GUI is PyQt6 and all of lcnc is pyqt5... and QGLWidget is not in Qt6 it's been removed.

JT

Please Log in to join the conversation.

More
2 years 3 months ago #304971 by Felipe5Sosa
Great info btw

Please Log in to join the conversation.

Time to create page: 1.453 seconds
Powered by Kunena Forum