You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, May 11th 2010, 4:49pm

Multiple Program Perspectives in QT

Hi,

I'm trying to design software which is split into multiple perspectives, each perspective being, in essence, like a program of its own. The layout I have is actually similar to that of QT Creator, with a sidebar of buttons which should switch to the chosen perspective.

Given that each perspective is very complex, they shall be programmed separately as individual programs. I've been trying to find a way to accomplish this in as neat, and fast a way as possible. One of my ideas would be to create new form classes which inherit from perhaps QFrame and then just load the appropriate one beside the toolbar. I've also tried inheriting from QMainWindow, but it seems that I cannot load these within my actual MainWindow, but rather only as a brand new pop up. I wonder if in fact I can even have the two as separate projects, and therefore separate EXEs, with some way of loading those into my MainForm.

I'm very new to QT (started about a week and half ago!), so I'm looking for some expert suggestions and help on what the best move would be.

Thanks a lot :)

2

Sunday, June 10th 2012, 8:54pm

I came upon this question searching for something very similar. I'll post here since it's similar and will keep the query's together should someone else search in the future..

I'd like to bundle together three different but related ui's into the same reusable space -- similar to how Eclipse works with "perspectives". The perspectives are a sort of super-tab that's tucked off to the right side and completely change the contents of the main window.

The Qt Creator IDE accomplishes this with a left-side button bar.

But...I'd also like to use dockable widgets, again similar to Eclipse. So the user can move these around or float them as required.

The Qt Main Window demo has all of the internal functionality I want (docking, floating, saving layouts). But I want to have multiple "main windows" under some super-tab structure, so the user can change perspectives.

So my questions:

1. Is it possible to achieve the Eclipse-like functionality of dockable widgets beneath top-level tabs?
2. Can multiple Main Windows exist? One for each tab? Or is some other way needed?
3. Can the tabs be styled, via CSS or something else to be right-justified, curved, whatever, to achieve a custom look?
4. Are there any examples of this overall behavior?


Thanks in advance.


Eclipse IDE - Perspectives example