qwtplot3d icon indicating copy to clipboard operation
qwtplot3d copied to clipboard

to show a 3d plot at somewhere specified

Open aopaw opened this issue 5 years ago • 1 comments

Hello, Working on this began 2 day ago but failed to implement one. I have duplicated a demo and re-configure it as a single project. For example, the simpleplot or dynamic plot can work well as a single project but shows memory violation error while I tried to display it inside a frame. Here is what I did The object is declared as a member of TestGUI inheritted from QMainWindow #include <QMainWindow> #include "difplot.h" // given simply qwt3d plot things

namespace Ui { class TestGui; }

class TestGui : public QMainWindow { Q_OBJECT

public: explicit TestGui(QWidget *parent = 0); ~TestGui();

private: Ui::TestGui *ui;

Qwt3D::GridPlot * oPlot; }; #endif // TESTGUI_H

What I can do to show it in TestGui.cpp if the main.cpp given as #include "testgui.h" #include <QApplication>

int main(int argc, char *argv[]) { QApplication a(argc, argv); TestGui w; w.show();

return a.exec(); }

0

aopaw avatar Sep 02 '20 08:09 aopaw

hello,

oPlot = new Qwt3D::GridPlot()

is missing somewhere...

ArsMasiuk avatar Oct 19 '20 11:10 ArsMasiuk