Acamapichtli
15th August 2013, 19:57
Hi
I write application which uses BorderLayout (http://qt-project.org/doc/qt-5.0/qtwidgets/layouts-borderlayout.html).
I have one main layout in the center, and additionaly one in the bottom, and one on the left side:
Center layout has only QTextEdit, and it's filling almost entire space of the window
South layout has few QLabels and QLineEdit
West layout has little more various controls (and will have more in future, so I plan to add here QDockWidget)
I want to have possiblity to toggle hide/show South and West layout with custom keyboard shortcut when QTextEdit is active. Unfortunately BorderLayouts don't have hide() option.
I could hide one control by one, but:
this could be laborious
even if I did this, there is small space visible in the rest of South or West panel, I can set this in BorderLayout.cpp constructor, but as I said, manual hiding all controls will be hard
My question: how can I easily toggle show/hide some layouts in BorderLayout? I appreciate any help.
I write application which uses BorderLayout (http://qt-project.org/doc/qt-5.0/qtwidgets/layouts-borderlayout.html).
I have one main layout in the center, and additionaly one in the bottom, and one on the left side:
Center layout has only QTextEdit, and it's filling almost entire space of the window
South layout has few QLabels and QLineEdit
West layout has little more various controls (and will have more in future, so I plan to add here QDockWidget)
I want to have possiblity to toggle hide/show South and West layout with custom keyboard shortcut when QTextEdit is active. Unfortunately BorderLayouts don't have hide() option.
I could hide one control by one, but:
this could be laborious
even if I did this, there is small space visible in the rest of South or West panel, I can set this in BorderLayout.cpp constructor, but as I said, manual hiding all controls will be hard
My question: how can I easily toggle show/hide some layouts in BorderLayout? I appreciate any help.