Editing Uicontrols
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
= uicontrols: Build a GUI in GNU Octave = | |||
You have to use the "qt" graphics toolkit (default since 4.0). For the best results GNU Octave version >= 4.2.x should be used. | You have to use the "qt" graphics toolkit (default since 4.0). For the best results GNU Octave version >= 4.2.x should be used. | ||
=== | == Resources == | ||
* https://www.gnu.org/software/octave/doc/interpreter/GUI-Development.html | |||
== Examples == | |||
=== imageViewer === | |||
GUI which opens a file selection dialog when a button is pressed and views the selected image. | GUI which opens a file selection dialog when a button is pressed and views the selected image. | ||
Line 52: | Line 58: | ||
Then run <code>imageViewer()</code> from your terminal: | Then run <code>imageViewer()</code> from your terminal: | ||
=== | === demo_uicontrol === | ||
This example tries to show all available uicontrols (needs Octave >= 4.0 and qt): | This example tries to show all available uicontrols (needs Octave >= 4.0 and qt): | ||
Line 249: | Line 255: | ||
update_plot (gcf, true); | update_plot (gcf, true); | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
[[Category:Examples]] | [[Category:Examples]] |