Thanks for the QTextDocument trick but if I set my text "<something>" it's removed, I would only remove special character, is it not possible ?
The goal is for that :
	
	- const QString-  elidedText  =-  fontMetrics ()- . elidedText(- textWithoutSpecialParams, Qt ::ElideMiddle- , width, Qt ::TextShowMnemonic)- ; 
 
        const QString elidedText = fontMetrics().elidedText(textWithoutSpecialParams, Qt::ElideMiddle, width, Qt::TextShowMnemonic);
To copy to clipboard, switch view to plain text mode 
  What I know is <qt>, <b>, <i>, <u>, <font color="">
Maybe the only solution is to do a while loop and remove each part of the string manually
				
			
Bookmarks