Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to show a 3d plot at somewhere specified #16

Open
aopaw opened this issue Sep 2, 2020 · 1 comment
Open

to show a 3d plot at somewhere specified #16

aopaw opened this issue Sep 2, 2020 · 1 comment

Comments

@aopaw
Copy link

aopaw commented Sep 2, 2020

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
#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

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

return a.exec();
}

0

@ArsMasiuk
Copy link

hello,

oPlot = new Qwt3D::GridPlot()

is missing somewhere...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants