Results 1 to 4 of 4

Thread: QFileDialog custom columns

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QFileDialog custom columns

    Hello,
    I'm trying to create a custom QFileDialog. The only feature that I would like to create is the possibility to add some custom columns, similar to "type" or "file size" to display additional informations about the files that are beeing viewed. However, this seems to be almoust impossible. I've seen that you can use some abstractproxy-something, but I really have no clue where to start.

    Is there anybody that can help me pointing the solution (or at least how to start)?

    Thank you a lot,
    Filnik.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog custom columns

    Doesn't QFileDialog::setViewMode() do the job?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFileDialog custom columns

    Thank you for the reply, btw that allows you to set the detail mode (and that's fine) but the problem is that I want to add also some custom columns and not to see only the default ones. I really can't find out how to do that

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog custom columns

    You will have to subclass QFileDialog for that.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QFileDialog custom acceptance condition
    By akos.maroy in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2011, 13:35
  2. Preview Thumbnail of images in Custom QFileDialog
    By toglia3d in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2010, 23:54
  3. Replies: 1
    Last Post: 12th October 2009, 10:33
  4. Replies: 8
    Last Post: 14th August 2008, 16:48
  5. Keeping track of columns in custom models
    By darkadept in forum Qt Programming
    Replies: 1
    Last Post: 28th February 2008, 21:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.