c++ - Trim text in a table column header with sort indicator -


i have table styled column headers. header height limited headers narrow. header has sort indicator (the default arrow/triangle).

when user changes width of column such smaller text's width, text trimmed 3 dots @ end. e.g. "universi..." far good.

the thing sort indicator hides part of trimmed text. imagine wide column - text show , sort icon on right , everthing looks good. user resizes column. before text trimmed 3 dots, sort indicator starts hide right side of text. @ point text trimmed sort indicator on top of 3 dots . e.g. "universi.▽" or "univers▽".

it looks header not take account sort sign. there simple way set sign indicator not overlap trimmed text e.g. "univer... ▽"? need columns resizable , sortable.

i don't want define special widget push button , text box , handle events , trimming , so... serious overhead.

thanks

this bug https://bugreports.qt.io/browse/qtbug-629 should solved in qt 5.4 https://codereview.qt-project.org/#/c/99900/


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -