Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, September 1998
Tooltip to MenuBar Items


Message 1 in thread

Hi,

is there a possibility to let a tooltip point to a menubar item?
As I understand the doc it is only possible to make a tooltip for the
entire menubar, not for single items (which is what you need ...).
Maybe it is possible via using the QRect form of the constructor, but
that seems like a bit of work.

Cheers, Ulrich



Message 2 in thread

Ulrich Jost <jost@evalo1.ific.uv.es>
> Hi,
> 
> is there a possibility to let a tooltip point to a menubar item?

We're adding this and more in 2.0.  Ditto popup menu items.

> As I understand the doc it is only possible to make a tooltip for the
> entire menubar, not for single items (which is what you need ...).
> Maybe it is possible via using the QRect form of the constructor, but
> that seems like a bit of work.

You'd need access to the private function itemRect() to make that
work.

--Arnt


Message 3 in thread

On Tue, 01 Sep 1998, Arnt Gulbrandsen wrote:
>Ulrich Jost <jost@evalo1.ific.uv.es>
>> Hi,
>> 
>> is there a possibility to let a tooltip point to a menubar item?
>
>We're adding this and more in 2.0.  Ditto popup menu items.
>
>> As I understand the doc it is only possible to make a tooltip for the
>> entire menubar, not for single items (which is what you need ...).
>> Maybe it is possible via using the QRect form of the constructor, but
>> that seems like a bit of work.
>
>You'd need access to the private function itemRect() to make that
>work.

kpanel (KDE) has tooltips on menubar items since quite a while. The trick was
to use the highlight signal of QPopupMenu as indicator and the current cursor
position QCursor.pos() + some offset to position them.

Matthias

>
>--Arnt
>
>-- 
>List archive and information: http://www.troll.no/qt-interest/