如何在 QT 中获得调整大小手柄?

发布于 2024-09-18 08:17:55 字数 211 浏览 1 评论 0原文

有没有办法在两个小部件之间获得调整大小效果?就像我有两个彼此相邻的 QTextEdit 框一样,我想在它们之间找到一个句柄,这样我就可以来回移动它。有点像我现在正在写入的文本区域底部有一个手柄,可以使其变大。

我正在使用 QT Creator,但我似乎无法弄清楚这一点。我通过使用 QDockWidget 得到了与我想要的类似的东西,但这看起来确实不像它的预期目的。

Is there a way to get a resize effect between two widgets? Like say I have two QTextEdit boxes next to eachother, I want to get a handle between them so I can move it back and forth. Sort of in the same way that the textarea I'm writing in now has a handle at the bottom for making it larger.

I'm using QT Creator and I can't seem to figure this out. I got something similar to what I want by using a QDockWidget, but that really doesn't seem like the purpose for which it was intended.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

喜你已久 2024-09-25 08:17:55

您需要的是 QSplitter

What you need is a QSplitter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文