|
From: | Alex Leach |
Subject: | Removing __init_qt__ dependency on libgui |
Date: | Wed, 11 Nov 2020 10:22:17 +0000 |
Hello,
I have been attempting to write a small C++ / Qt application that can interpret Octave scripts and plot figures, using the qt backend. This has been much more difficult than I'd hoped, and I've spent quite a lot of time trying to figure out why the qt backend
isn't available to a qt application linked to the octave libraries.
The Qt backend seems to have been originally derived from the QtHandles github repository at https://github.com/goffioul/QtHandles/,
with the source code from this repo copied into Octave's libgui/graphics/. Originally, and in the current 5.2.0 release, this was compiled as a standalone
module: __init_qt__.oct, but qt figures couldn't easily (at all?) be launched outside of the main GUI.
In the last couple of months however, some of the most recent commits have completely removed compilation of a separate __init_qt__.oct module and compiled this
code directly into the main Octave GUI library, as quite rightly, it couldn't be loaded outside of the main GUI anyway.
I would like to propose however, that development of the qt backend go back the other way. Instead of merging and increasing its dependencies on the core GUI, can we try and bring back its modular nature and remove any dependencies on the main GUI?
When the QtHandles was originally developed, it appears there was a very simple tool that would launch the Octave interpreter, and allow launching of the Qt backend:-
This is exactly the sort of thing I'm looking to try and implement, so may I propose that __init_qt__.oct comes back and the module becomes completely decoupled from the main GUI?
Some initial suggestions which may help make this happen (referring to github commit hashes; sorry if hg ones would be easier to follow!):-
I don't think there's a huge amount else to do, but that's probably easier said than done!
As the Octave maintainers, would you be interested in seeing the qt handles backend completely decoupled from the main GUI and made strictly modular again?
Kind regards,
Alex
|
[Prev in Thread] | Current Thread | [Next in Thread] |