[Qt-interest] Mdi window design issue: tips welcomed
Rui Maciel
rui.maciel at gmail.com
Wed May 12 02:10:23 CEST 2010
Rui Maciel wrote:
> I've tried to implement this method but I stumbled on a problem. The
> thing is, my internal widget inherits both QGLWidget and an attribute
> class which I named MdiWindowProperties. Yet,
> QMdiSubWindow::activeSubWindow() returns a pointer to a QWidget object.
> So the only class which I believe is available through a dynamic_cast<> is
> QGLWidget and not MdiWindowProperties.
>
> So, can anyone help?
Scratch that. I screwed up inheriting MdiWindowProperties, which was being inherited as private.
Once I fixed that I've managed to identify the type of widget which is being used as any given
QMdiSubWindow's internal widget.
Rui Maciel
More information about the Qt-interest-old
mailing list