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

Qt-interest Archive, October 2007
Links in tooltips


Message 1 in thread

I know this may sound crazy, but is it possible to add links on tooltips and
to actually click on them?

I know the tooltips can contain rich text content, I actually added a link
but I had a hard time clicking on link because the tooltip kept disappearing
as I moved the mouse and I exited the area occupied by the component. I was
wondering if the showing/hiding timing of a tooltip can be controlled.

Sometimes it is useful to add actions/links on tooltips as an alternative to
popup menus. I have seen this in the IntelliJ Idea IDE where they display
some message in a tooltip and the tooltip contains a link 'More..' that you
can click on to get more information.

Or in an application you could have a control and if you hover the mouse
above the control the tooltip displays a help message and a More... link to
launch the help or other useful stuff.

An alternative would be to customize the whats this message but it requires
the user to press shift+f1.

Any thoughts?



--
 [ signature omitted ] 

Message 2 in thread

B.C. wrote:
> I know this may sound crazy, but is it possible to add links on tooltips and
> to actually click on them?
>
>   
Actually I don't know if it is possible with ToolTips but according to 
the docs it is possible with QWhatsThis. Have a look at it, it states:
" If the text is rich text and the user clicks on a link, the widget 
also receives a QWhatsThisClickedEvent <qwhatsthisclickedevent.html> 
with the link's reference as QWhatsThisClickedEvent::href 
<qwhatsthisclickedevent.html#href>()."

--
 [ signature omitted ] 

Message 3 in thread

Hello all

I used addItem( QString) of QListWidget to add item. BUt i am not able to
delete the item from the QListWidget.

Delete .........


// QListWidget *Projects;

QList<QListWidgetItem *> items = Projects->selectedItems();

QListWidgetItem * item = items.first();

Projects->removeItemWidget(item);

................

This is not removing the item from the QListWidget.

Please suggest..

Thanks

--
 [ signature omitted ]