Replace QWorkspace with QMdiArea

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Replace QWorkspace with QMdiArea

Post by wmayer »

In Qt version 4.3 the class QMdiArea was introduced to replace the old-fashioned QWorkspace. Since we have two annoying problems with QWorkspace I started to replace it step by step with QMdiArea in the FreeCAD sources. These two problems are:
  • When the HTML start page is shown at startup and a 3d view is created there is always an area which isn't correctly repainted until you manually switch to another page.
    (There is also a crude hack to do that programmatically when adding the 3d view inside MainWindow::addWindow)
  • When a 3d view is not maximized it's not possible to interact with the scene because it also move the whole widget
With the new QMdiArea there are no more the Minimize/Maximize/Close buttons. Instead you'll find the Close button directly in the associated tab.
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Replace QWorkspace with QMdiArea

Post by yorik »

wmayer wrote:Instead you'll find the Close button directly in the associated tab
Which is even better I think, more firefox-like ;) (or should we say google chrome-like now :geek: )
Post Reply