Menu

#649 Build the Qt terminal GUI as a shared library

open
nobody
None
5
2015-07-15
2013-12-13
No

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.

1 Attachments

Discussion

  • Jérôme Lodewyck

    Updated version that includes an additional constructor for QtGnuplotWidget

     
  • Jérôme Lodewyck

    Updated version that matches the current CVS

     
  • Jérôme Lodewyck

    Updated version that matches the current CVS

     
  • wanshuzhen

    wanshuzhen - 2014-03-01

    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!

     
  • Jérôme Lodewyck

    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

     
    • wlxu

      wlxu - 2015-02-02

      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.

       
  • wanshuzhen

    wanshuzhen - 2014-03-02

    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?

     
    • wlxu

      wlxu - 2015-02-02

      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.

       
  • wlxu

    wlxu - 2015-02-02
     

    Last edit: wlxu 2015-02-02
  • Jérôme Lodewyck

    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.

     

Log in to post a comment.