0

I can't find anything about how to embed plotting into Qt by using C++. Which component in Qt should be used for plotting?

I want to grasp the thing generated by these lib and display it using Qt.

1 Answer 1

0

I have a working example at this blogpost combining embedded R with Qt. I used both SVG and PNG graphs, though the current version only uses SVG.

The repository is here, if you rewind a commit or two you get the version that flips between SVG and PNG (depending on whether a particular can be loaded).

You should be able to use the logic to show plots from either plplot or matplotlib.

Sign up to request clarification or add additional context in comments.

12 Comments

I think it's overkilled. I just want to grasp the thing generated by this lib and display it on qt.
That is precisely what my app shows you: instantiate a widget, point it to a file, get display of the file.
I see that embed whole R language. can't I just display it immediately?
can I just display it without any file outputed?
You do not need R, that is simply my example of generating a file. Given a file, from where ever it comes, you can have Qt display it.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.