[Interest] Qt equivalent for Windows' PathCompactPath function?

Sascha Offe sascha.offe.x at gmail.com
Thu Sep 4 01:43:30 CEST 2014


Hi,

does Qt have something similar to Windows' PathCompactPath function 
<http://msdn.microsoft.com/en-us/library/windows/desktop/bb773575> for 
shortening a displayed file path?

(After my quick search on the web, it seems not...)

Example:
| The un-truncated path is                C:\path1\path2\sample.txt
| The truncated path at 125 pixels is :   C:\path1\...\sample.txt
| The truncated path at 120 pixels is :   C:\pat...\sample.txt

Thanks,
	Sascha



More information about the Interest mailing list