[Qt-interest] Hide file extensions shown in a QListView from a QDirModel
David Narvaez
david.e.narvaez at gmail.com
Sat Nov 14 01:12:38 CET 2009
Still having problem with this? I haven't inspected the whole list of
methods of the class, but if there's really no way to do so, you can
subclass QDirModel and overwrite the data method so that it doesn't display
the extension.
*David E. Naváez*
Member of the Institute of Electrical and Electronics Engineers
Member of the Computer Society of the IEEE
Member of the Association for Computer Machinery
Member of the Society for Indsutrial and Applied Mathematics
On Thu, Nov 12, 2009 at 6:29 AM, valimaki ketola <
valimaki_ketola at hotmail.com> wrote:
> Hi,
>
> I'm using a QListView and a QDirModel to show files from a directory. All
> is ok, but I want to hide file extensions in the QListView. For example:
>
> Original View | Desired View
>
> image1.jpg | image1
> image2.jpg | image2
> image3.jpg | image3
>
> How can I do that? I didn't find an easy way.....
>
> Thanks.
>
> ------------------------------
> 49 habitantes, 49 expertos en Windows 7. Así es Sietes, ¡Visítalo!<http://www.sietesunpueblodeexpertos.com/>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091113/7b7a5935/attachment.html
More information about the Qt-interest-old
mailing list