octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: J. Luis
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Wed, 12 Oct 2011 22:01:25 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 12-10-2011 21:37, Michael Goffioul wrote:
On Wed, Oct 12, 2011 at 9:25 PM, Joaquim Luis<address@hidden>  wrote:
Hi,

I did in a Fedora 15 VM running on Windows.
It was my first Octave build and, about that I can say that building
instructions could be a bit better. The configure script warned me about
things that I didn't have and would not be built with (normal) but than make
error on it. For example OpenGL and tex2info were a couple that I remember.
But fine, I got something. However, this simple example starts but crash
immediately when I move the figure.

h=plot(1:10);hP = uimenu('Parent',h,'Label','Plates');
What you're trying to do (context menus) is not supported yet.
Hopefully that's the cause of the crash. Could you try something else
that does not use context menus. You can for instance create regular
menus in the figure menubar, create controls like buttons, sliders,
edits...

No, that line creates a menu in the figure's menubar. And answering to your other mail, the 'Parent' is indeed a handle to a figure. Note

h = plot(1:10);

hP = uimenu('Parent',h, ...  % 'h' is the handle to the fig created by plot.

I know this works because I took it from Mirone.
BTW, sorry for the mistake in the link (one extra dot) but you can just google 
for Mirone. It's the first on the page

w3.ualg.pt/~jluis/mirone


Some time ago I asked on the mailing list whether anybody had some
samples using uiXXXX objects. If you have some, feel free to send them to
me, such that I can use them for testing when developing. Note that the
link above didn't work.

Mirone figures were almost all created with GUIDE and exported to .m but I than got rid of about 90% of the trash code generated by GUIDE. They are now very compact and simple to read. However, they still use 'guidata' and 'guihandles' which I believe have not ported equivalent in Octave. So, right now they probably not the best simple examples to use as test but I'm interested in helping to port it if you want.
BTW, you can see the code also at http://code.google.com/p/mirone/

Joaquim


reply via email to

[Prev in Thread] Current Thread [Next in Thread]