qt设置chart大小自适应
时间: 2024-02-05 16:03:15 浏览: 96
Qt 界面上字体自适应控件大小 - 随控件缩放
为了实现Qt中设置chart大小自适应的功能,您可以按照以下步骤操作。
首先,在.pro文件中添加以下代码:<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [[Qt] QtChart绘制曲线图基础入门笔记:包括坐标轴设置,数据更新](https://blog.csdn.net/qq_34342853/article/details/118705220)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Qt图片自适应窗口控件大小](https://blog.csdn.net/yh_1988/article/details/6752733)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文