我正在开发一个工具,它将有一些可变大小的窗口。我可以使用 QSplitter
来实现这一点水平垂直。请参阅附图。
现在,如何使这些单独的窗口可分离/最大化/关闭?如何在每个窗口的右上角添加十字标记,以便它们可以最大化关闭或从那里分离?就像这个链接:--
http://vector.com/portal/medien/ecu_testing/tae/test_automation_editor.png
最佳答案
您正在寻找 QDockWidget
类(class):
The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow.
退房 this example
关于qt - 如何在 Qt 中拥有可拆卸的工具窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16334549/