简体   繁体   English

如何在QT中获取调整大小的句柄?

[英]How do I get resize handles in QT?

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. 就像说我有两个彼此相邻的QTextEdit框一样,我想在它们之间获得一个手柄,以便可以前后移动它。 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. 我正在使用QT Creator,但似乎无法弄清楚。 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. 通过使用QDockWidget,我得到了与我想要的东西类似的东西,但实际上这似乎并没有达到预期的目的。

您需要的是QSplitter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM