Qt-interest Archive, March 2007
Draw pixmap inside title bar?
Message 1 in thread
Hello all,
i am being asked to draw a small pixmap inside title bar of
application window. That part which is being driven by
QStyleOptionTitleBar when drawing windows under QStyle command. But
this is a top application bar, which is left to the OS implementation
via QWidgetPrivate::show_sys() - if my little digging in source code
is correct. So it is certainly not directly controllable by Qt engine.
I have been trying to override QMainWindow::paintEvent and draw
something on, say, coordinate 5,100. But when i created my own
QPainter(this), nothing happened. I also tried to get the Painter from
QMainWindow::paintEngine() but that is always null. When i tried
various begin(), setActive(true) etc., it always ended up on something
crucial being null inside QPaintEngine.
Is there any way how to get access to that part of Qt application window?
Thanks,
Pavel Zdenek
--
[ signature omitted ]
Message 2 in thread
Hi,
> Is there any way how to get access to that part of Qt application window?
On which platform?
--
[ signature omitted ]
Message 3 in thread
It was originally supposed to be multi-platform, as the rest of the application.
But if there is no such way, then Windows is primary.
Pavel.
2007/3/27, Dimitri <dimitri@xxxxxxxxxxxxx>:
> Hi,
>
> > Is there any way how to get access to that part of Qt application window?
>
> On which platform?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]