qt-interest@trolltech.com
[Top] [All Lists]

Customizing the tooltip text for truncated QListView column's

Subject: Customizing the tooltip text for truncated QListView column's
From: André Somers
Date: Wed, 1 Dec 2004 11:32:10 +0100
Hi,

I'm trying to customize the text in the tooltip popup for truncated QListView 
columns. Normally, if the column is truncated, you can let Qt display a popup 
containing the complete text for that cell. That's nice, unless Qt thinks 
it's rich text while it is not. So, I'd like to force the usuage of plain 
text in the popup, or, alternatively, convert the string to rich text myself 
so I can encode any part that may look like a string (easy using 
QStyleSheet.) The problem is that I can't find a way to alter the string 
before it is displayed. Do I really need to dig into the Qt sourcecode and 
reïmplement the whole tooltip mechanism that QListView uses, or is there a 
better way?

André

-- 
My opinions may have changed, but not the fact that I am right.
-- Ashleigh Brilliant
<Prev in Thread] Current Thread [Next in Thread>