
Originally Posted by
lathhud
I accept with information:it does its job and the main application handles the user interface. This means the application programmer has more work to do, but it's a lot more flexible and means its not restricted to a single, or "only supported" gui frameworks.
I've worked with radar displays that do what you describe. When the operator clicks on a point on the screen, the software has to translate screen coordinates into latitude/longitude, which are then used to determine what object is under the mouse pointer. There is no coupling between rendering and the user interface in that architecture.
In my Open Inventor work using SoQt, however, I always let OIV classes handle mouse events and let OIV do the rendering. Below is an example of how easy it is to put an OIV render area inside a Qt widget:
SoQtRenderArea *viewer = new SoQtRenderArea(VisGui::Instance()->visOIVWidget);
SoQtRenderArea *viewer = new SoQtRenderArea(VisGui::Instance()->visOIVWidget);
To copy to clipboard, switch view to plain text mode
In my opinion, there are benefits to this approach too numerous to mention. For example, OIV mouse events give the coordinates of the mouse action in OIV coordinates regardless of how the screen has been resized.
I still don't understand why so many people have responded that they don't want to leverage this kind of high level capability, so hopefully you can clarify the technical and schedule reasons for me.
I think most employers would not be at all pleased if they found out their S/W engineers weren't using capabilities the company had paid thou$and$ to license OIV or Coin3D in order to obtain.
So, specifically in your own Open Inventor/Coin3D and Qt applications, what were the technical or other considerations that caused you to decide to not use SoQt, but to do all the work yourself? 
It seems worthwhile to recall that this is a Qt forum, Qt is (IMHO) a great product (and now LGPL!) and the topic we're discussing is specifically OIV/Qt/SoQt, not some arbitrary combination of libraries, so I would appreciate it if you can also clear up my confusion about why there's so much concern about wanting to use a non-supported GUI?
Thanks,
Martin
Bookmarks