Hi,
I use this code to get the item width to resize the column to take the whole space :
Qt Code:
  1. const int messageWidth = QFontMetrics(messageItem->font()).width(text) + 6;
To copy to clipboard, switch view to plain text mode 
As you can see, one hack is needed, 6px needed to be added ot have the correct result.
Is it possible to have a way to avoid this magic number ?
Thanks for the help