[Interest] promoting a QGuiApplication to a QApplication?

Thiago Macieira thiago.macieira at intel.com
Wed Jul 11 20:05:08 CEST 2018


On Wednesday, 11 July 2018 10:30:37 PDT René J.V. Bertin wrote:
> On Wed, 11 Jul 2018 08:01:25 -0700, Thiago Macieira wrote:
> > There's no such C++ concept as "promote a class". What you're asking is
> > not possible.
> 
> I think I got confused myself with dynamic_cast, but of course what I had
> in mind was not modifying the instance itself, but create a new
> QApplication instance from the original QGuiApplication instance. That's
> what dynamic_cast also does when it doesn't simply return the original
> pointer, no?

No.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Interest mailing list