[Qt] I need a hack
Paul Ishenin
webpirat at mail.ru
Mon Sep 22 01:23:11 CEST 2008
zeljko wrote:
> QMdiSubWindow/private is not a place to ask such things.
>
We can use another place if it more safe:
QWorkspaceTitleBarPrivate::readColors() reads colors to
QWorkspaceTitleBarPrivate palette. Can we create internally such private
widget and request its palette?
> Let's study a bit qt docs, besides I'm trolltech customer so I can ask such
> questions w/o problems. (I'll be out of here next few days ...so I can send
> an email to trolltech ... about thursday/friday )
> Something comes on my mind is to ask QStyleOptionTitleBarH somehow about it,
> I mean ask QStyleOption_palette(handle : QStyleOptionH; retval : QPaletteH );
>
> eg.
> so := QStyleOptionTitleBar_create();
> QStyleOption_palette(so, MyPalette);
> QStyleOptionTitleBar_destroy(so);
>
> don't know now exact solution, but I think that making such hack isn't good
> idea. And what if your app is not MDI ? Crash ?
> What about Linux/Mac
Ofcource having an non-hackish solution will be nice.
Best regards,
Paul Ishenin.
More information about the Qt
mailing list