如何在 QT 中获得调整大小手柄?
有没有办法在两个小部件之间获得调整大小效果?就像我有两个彼此相邻的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要的是 QSplitter。
What you need is a QSplitter.