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

Qt-interest Archive, March 2002
Richtext tables...


Message 1 in thread

Hi,

I recognized a slightly different behaviour in using
richtext tables inside a QTextView widget. In Qt2 it was
able to define fixed cell widths, the same code in Qt3
seems to ignore this setting.

Richtext source looks like the following lines:

---snip---

<table border=1 bgcolor=lightgrey cellspacing=1 width=90%>
<tr>
<td width=50>some short text</td>
<td width=200>some short text</td>
</tr>
</table>

<table border=1 bgcolor=lightgrey cellspacing=1 width=90%>
<tr>
<td width=50>some longer text</td>
<td width=200>some longer text</td>
</tr>
</table>

---snap---

Maybe I`m wrong or doing something nasty ;) but can 
anybody reproduce this and give me hint

Thanks

cu
Marcus


Message 2 in thread


Marcus Schaefer schrieb:
> 
> I recognized a slightly different behaviour in using
> richtext tables inside a QTextView widget. In Qt2 it was
> able to define fixed cell widths, the same code in Qt3
> seems to ignore this setting.
> 
> <table border=1 bgcolor=lightgrey cellspacing=1 width=90%>
> <tr>
> <td width=50>some short text</td>
> <td width=200>some short text</td>

You are specifying the width of the table in terms of the total width
available, and you're defining the width of each column as a fixed pixel
size. Either setting always contradicts the other unless the available
viewport is exactly 278 pixels wide.

I am no expert at which setting overrides which, but your markup is
unfortunately illegal :/

Greetings,
Arne