This patch builds the GUI elements of the Qt terminal as a shared library. It enables to embed a GnuplotWidget in external programs.
This option is enabled with ./configure --with-qt=lib
It is available only for Qt5
Caution: this patch adds libtool as a dependency for buidling gnuplot even when the feature is not enabled, and running libtoolize is required before configuring.
Updated version that includes an additional constructor for QtGnuplotWidget
Updated version that matches the current CVS
Updated version that matches the current CVS
I'm working on using the gnuplot in the QT. I use the current version of gnuplot of CVS, but, it has not the file "configure",and can not patch. Because I have recently used the gnuplot,so I want to know how to embed the gnulot into Qt ,can you help me? or give your the compiled gnuplot Qt shared library to me? or taile the process of the compiling and embed it into Qt. thank you very much!
Updated to current CVS
To install the library, patch the gnuplot source tree with this patch and run
./prepare
./configure --with-qt=lib
make
make install
I have also attached a minimal Qt project that makes use of this library.
Put qtgnuplotlib-example.cpp and qtgnuplotlib-example.pro in an empty directory and run
qmake
make
./qtgnuplotlib-example
Hi, I am also using QT5 in windows 7 VS2013 and macos 10, I have the same question --
how to embed gunplot into my QT program? Could the library method applicable to Win7.
thank you very much for your help. but, I work in the windows 7 environment, I want to use the gnuplot and Qt to visualize the data, can you tell me how to do in windows 7 and VS2010.
In ubuntu 13.10. what version of QT? QT5? and other environment?
Hi, I am also using QT5 in windows 7 VS2013 and macos 10, I have the same question --
how to embed gunplot into my QT program? Could the library method applicable to Win7.
Last edit: wlxu 2015-02-02
Updated to current CVS.
Note that this patch only modifies the build system files. It can be adapted to other platforms by modifying the corresponding Makefile.