[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Compacting long file names or strings
From: Wolfgang Rohdewald <wolfgang () rohdewald ! de>
Date: 2013-01-16 10:06:09
Message-ID: 4157086.S3TONkPpDg () i5
[Download RAW message or body]
Am Mittwoch, 16. Januar 2013, 09:54:43 schrieb Timothy W. Grove:
> Suppose I have a long file name such as "C:\Users\Public\Videos\Sample
> Videos\Wildlife.wmv" that I want to display on a button but there isn't
> enough room to display the entire name. I want to compact it down to,
> say, "C:\Users\...\Wildlife.wmv". I'm pretty sure that I've seen a
> method somwhere which will already do this; I just can't remember
> where... Does this ring any bells with anyone???
https://qt-project.org/doc/qt-4.8/qfontmetrics.html#elidedText
--
Wolfgang
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic