to show a 3d plot at somewhere specified
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
hello,
oPlot = new Qwt3D::GridPlot()
is missing somewhere...