Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse QCustomPlot示例关闭布局_Eclipse_Qt_User Interface_Layout - Fatal编程技术网

Eclipse QCustomPlot示例关闭布局

Eclipse QCustomPlot示例关闭布局,eclipse,qt,user-interface,layout,Eclipse,Qt,User Interface,Layout,我在Eclipse的QT中有一个带有QCustomPlot的示例项目。链接是。我正在尝试setupQuadraticDemo()的案例。示例很好,我可以毫无问题地构建和运行项目。但QCustomPlot是使用ByLayout在左侧定位的。但我想通过鼠标移动在主窗口上移动QCustomPlot。所以我想使用关闭布局。在Property Explorer中,我只能在LeftToRight或RightToLeft上设置布局方向。但我想取消在这个项目中使用的布局。如何在这个示例项目中实现这一点?我是QT

我在Eclipse的QT中有一个带有QCustomPlot的示例项目。链接是。我正在尝试setupQuadraticDemo()的案例。示例很好,我可以毫无问题地构建和运行项目。但QCustomPlot是使用ByLayout在左侧定位的。但我想通过鼠标移动在主窗口上移动QCustomPlot。所以我想使用关闭布局。在Property Explorer中,我只能在
LeftToRight
RightToLeft
上设置布局方向。但我想取消在这个项目中使用的布局。如何在这个示例项目中实现这一点?我是QT的新手。我必须在ui_main window.h或qcustomplot.ccp或其他地方进行编辑吗?谢谢

好的,我解决这个问题。我右键点击主窗口。然后我选择选项
布局
。然后我点击了
中断布局
。现在我可以通过鼠标移动来替换主窗口上的元素