Feature Request: Add horizontal split view
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Feature Request: Add horizontal split view
So I was considering implementation details for the transportation engineering module and given that roadway alignments tend to be long and horizontally aligned, it would be handy to provide two horizontal views: one for the horizontal alignment and one for the vertical alignment
At present, you can tile views in the Windows menu, which defaults to a side-by-side arrangement. Of course, I'd like it to be a top-bottom arrangement instead. I can do this manually, but the window dimension constraints are too large. On a 1080p display, it means they overlap. Of course, if I narrow or eliminate my Python console, I have all the space I need, but, of course, that doesn't help in development.
At a bare minimum, adding a top-bottom tile option to the Windows menu seems like it might be a good idea.
To achieve what I need for now, maybe I can manage it in Python?
At present, you can tile views in the Windows menu, which defaults to a side-by-side arrangement. Of course, I'd like it to be a top-bottom arrangement instead. I can do this manually, but the window dimension constraints are too large. On a 1080p display, it means they overlap. Of course, if I narrow or eliminate my Python console, I have all the space I need, but, of course, that doesn't help in development.
At a bare minimum, adding a top-bottom tile option to the Windows menu seems like it might be a good idea.
To achieve what I need for now, maybe I can manage it in Python?
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- microelly2
- Veteran
- Posts: 4691
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Feature Request: Add horizontal split view
This is realy a good idea, I often need this kind of view for landscapes too.
I think, we can do some special window layout setters whcxi can be added to the freecad file
My idea is to have a "Window layout object" which can be clicked to activate,
in this category the quad view/single view macro should occur too.
I think, we can do some special window layout setters whcxi can be added to the freecad file
My idea is to have a "Window layout object" which can be clicked to activate,
in this category the quad view/single view macro should occur too.
Re: Feature Request: Add horizontal split view
There is something I often wondered, is if Qt provides a way to arrange MDI views without their title bar, like these tiled window managers on linux... There are many apps out there that do that so it might be possible out of the box, but couldn't find anything...
In this request what would be cool would be that the Y position of the camera stays linked in the two views, so when you move the camera left/right in one of them, the other follows. That might be possible to do with pivy.
In this request what would be cool would be that the Y position of the camera stays linked in the two views, so when you move the camera left/right in one of them, the other follows. That might be possible to do with pivy.
Re: Feature Request: Add horizontal split view
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Feature Request: Add horizontal split view
That's not exactly the same thing, it will just leave a QWidget without its window frame. But it would be cool to really have a tiling system, where you can move the separator between two subwindows.
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Feature Request: Add horizontal split view
I had these same thoughts, but didn't want to push it too far - trying to keep the feature request in the realm of low-hanging fruit.

FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
Re: Feature Request: Add horizontal split view
Apparently this doesn't exist out of the box in qt. But maybe there is something implemented by someone else... Didn't find anything yet, though
- microelly2
- Veteran
- Posts: 4691
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Feature Request: Add horizontal split view
Learn to play with the widget geometry will be usefull.
having an on the fly configurable widget manager will also be useful for dialog management.
Re: Feature Request: Add horizontal split view
Perhaps other FOSS projects have implemented something? Like Krita or QGIS ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- microelly2
- Veteran
- Posts: 4691
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Feature Request: Add horizontal split view
resizing and moving is not a big deal.
Edit: replaced code
Code: Select all
mw=FreeCADGui.getMainWindow()
mdiarea=mw.findChild(QtGui.QMdiArea)
sws=mdiarea.subWindowList()
print mdiarea.geometry()
a=mdiarea.geometry()
l=a.left()
r=a.right()
t=a.top()
b=a.bottom()
h=b-t
ls=len(sws)
hh=h//ls-ls
print "windows ..."
for i,w2 in enumerate(sws):
print str(w2.windowTitle())
print ("size",w2.size())
w2.setGeometry(0,i*hh,r-l,hh)