我正在使用Octave 4.0.3和qt图形工具包。我正在尝试使用以下代码制作带有按钮的面板:
clear all
close all
h = figure;
hp = uipanel('Title','Main Panel','FontSize',12,...
'BackgroundColor','red',...
'Position',[.25 .1 .67 .67]);
b=uicontrol('Parent',hp,'Visible','on');
它适用于MATLAB,但不适用于Octave。