Lcnc_3dGraphics

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
26 May 2024 13:47 - 27 May 2024 11:33 #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.


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.


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
Last edit: 27 May 2024 11:33 by JT.

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
26 May 2024 14:26 - 27 May 2024 11:30 #301482 by JT
Replied by JT on topic Lcnc_3dGraphics
I also tried the following

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

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
Last edit: 27 May 2024 11:30 by JT.

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

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
26 May 2024 14:50 - 27 May 2024 11:32 #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
Last edit: 27 May 2024 11:32 by JT.

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

More
12 Jul 2024 06:38 #304971 by Felipe5Sosa
Great info btw

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

Time to create page: 0.079 seconds
Powered by Kunena Forum