From: Ethan A M. <me...@uw...> - 2022-09-03 21:19:04
|
On Saturday, 3 September 2022 13:12:11 PDT Dima Kogan wrote: > >> Let's say the request was "I want a gnuplot-powered plotting widget in > >> my GTK application". What would you suggest in that case? > > > > Isn't that what wxt is? > > Is it? If I was building a GTK application (not wx; plain GTK), could I > use the gnuplot wxt terminal as a widget in that application? The docs > don't make that clear, and definitely don't tell you how to do that. You seem to be asking for a cross-platform UI with widgets based on gtk. What I meant was that wxWidgets claims to be exactly that, although it doesn't use (or at least doesn't default to using) gtk on all the supported platforms. So if you base your UI on wxWidgets, then gnuplot's wxt terminal is a natural fit. > Similarly, what if I was building a Qt application? "help qt" mentions a > "widget" option, which maybe provides this function, but that option > isn't documented, so I don't know what it does. In the file .../src/Makefile.am is a commented out section that builds a simple Qt app with embedded gnuplot windows. Edit that file to un-comment the section and re-run ./prepare; ./configure; make ./embed_example Ethan |