Make the qtcad shell a widget rather than the whole app, using the Qt editor example as a guide.  Embedded in an interface with menus now, which is a small step closer to a more sophisticated GUI.
Build layout example