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

Qt-interest Archive, February 2007
tool tip width


Message 1 in thread

Hi,

in a custom Widget I use QToolTip::showText() to display a tool tip containing 
a table, someting like the following:

<table>
<tr><td>A</td><td>B</td></tr>
<tr><td>C</td><td>D</td></tr>
<tr><td>E</td><td>F</td></tr>
<tr><td>G</td><td>H</td></tr>
<tr><td>I</td><td>J</td></tr>
<tr><td>K</td><td>L</td></tr>
<tr><td>M</td><td>N</td></tr>
</table>

The table's width is relatively small compared to its height.
But the tool tip I get always has a width that is larger than its heigt.
It looks like this:

+-------------------------------------------------+
| A B                                             |
| C D                                             |
| E F                                             |
| G H                                             |
| I J                                             |
| K L                                             |
| M N                                             |
+-------------------------------------------------+

Does anyone have an idea how I could display a tool tip with a size, that 
matches the size of the table more closely (without the large empty area 
right of the table)?

TIA
-Rainer

--
 [ signature omitted ]