PDA

View Full Version : Use of splitter in QTcreator



emp1953
4th August 2017, 18:44
I have a menu page with 17 qcustom plots. I want to be able to click on one and stretch it in the height and width dimension. Is there no way to have this widget be able to have the characteristics of both the horizontal and vertical splitter?

Thanks for any help or suggestions.

d_stranz
5th August 2017, 17:57
The standard QSplitter works in only one direction (horizontal or vertical). If I understand your question correctly, what you are asking for is a grid splitter that works in both directions at the same time - that is, the splitter divides the space into 4 rectangles, and you can resize the rectangles by grabbing either the vertical bar, horizontal bar, or intersection of the two to resize all 4 windows at the same time.

There is an old thread here (http://www.qtcentre.org/threads/19614-QSplitter-like-a-quot-grid-quot-splitter-Using-qt-4-4) which discusses this, and maybe you can use the idea there to implement what you want.

There is also a post on linux-apps.com (https://www.linux-apps.com/p/1132165/) that might help. Also check the inqlude (https://inqlude.org) web site.