Feature Request: Add horizontal split view

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Feature Request: Add horizontal split view

Post by Joel_graff »

microelly2 wrote: Mon Nov 27, 2017 4:07 pm resizing and moving is not a big deal.
That looks like it'll do for what I need. :)
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
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Feature Request: Add horizontal split view

Post by yorik »

microelly2 wrote: Mon Nov 27, 2017 4:07 pmresizing and moving is not a big deal.
Yeah, that could be a way to do it:

1) hide the subwindow borders
2) tile the subwindows a certain "known" way (split horizontal, quad , etc)
3) handle resize events so when you resize one, others resize too

But certainly someone else did it before...
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Feature Request: Add horizontal split view

Post by Kunda1 »

yorik wrote: Tue Nov 28, 2017 1:28 pm
microelly2 wrote: Mon Nov 27, 2017 4:07 pmresizing and moving is not a big deal.
Yeah, that could be a way to do it:

1) hide the subwindow borders
2) tile the subwindows a certain "known" way (split horizontal, quad , etc)
3) handle resize events so when you resize one, others resize too

But certainly someone else did it before...
Yorik, I could think of QGIS and possibly Krita.. do you have any idea who else would need such a function that uses Qt5 ?
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
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Feature Request: Add horizontal split view

Post by wmayer »

Try this:

Code: Select all

Gui.createViewer(4)
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Post by microelly2 »

wmayer wrote: Tue Nov 28, 2017 3:03 pm Try this:

Code: Select all

Gui.createViewer(4)
interesting, how I can bring shapes into this object?
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Feature Request: Add horizontal split view

Post by wmayer »

Code: Select all

v=Gui.createViewer(4)
view=v.getViewer(0)
node = ... # Inventor nodes
view.setSceneGraph(node)
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Post by microelly2 »

works fine,
now the next question: :roll:
is there a way to change the sizes of the "subwindows"
I can do this using the mouse drag, is there a method to do it by script
or do I have to go into the Widget with native Qt methods
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Feature Request: Add horizontal split view

Post by wmayer »

is there a way to change the sizes of the "subwindows"
I don't know. You can try to move the splitter by script.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Feature Request: Add horizontal split view

Post by Joel_graff »

This issue was solved for me several posts back in this thread - I can manage it in code nicely enough.

That said, it seems like maybe an official feature request should be submitted... If so, what, specifically, should be included in the request?
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
User avatar
regis
Posts: 751
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: Feature Request: Add horizontal split view

Post by regis »

No nknowledge in this sector, but just to say that is there a way to implement the blender like splitting of views, it is very easy and allows for many combinations?
Post Reply