Results 1 to 2 of 2

Thread: subclass of QFileDialog

  1. #1
    Join Date
    Apr 2009
    Posts
    12
    Thanks
    2
    Qt products
    Qt4

    Default subclass of QFileDialog

    Hi,

    I need to subclass QFileDialog in a way to appear with tabs above the dialog. Thus, I create QDialog object with QTabWidget object in its layout, and then for the first tab (->widget(0)) I say to be parent of QFileDialog object. It doesn't appear to do what I need.

    What is the right way to make QFileDialog appear in QTabWidget object in a dialog of my own?

    thanks

  2. #2
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: subclass of QFileDialog

    Hi,

    I am not sure if you really can embed a QFileDialog into another widget. Maybe you could use QDirModel and some viewwidget.

Similar Threads

  1. QListWidgetItem subclass - Crash program in drag/drop
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2009, 09:24
  2. Check for invalid file name in QFileDialog
    By darren in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 14:43
  3. QSqlQueryModel write subclass
    By skuda in forum Qt Programming
    Replies: 6
    Last Post: 29th October 2007, 16:18
  4. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 00:41
  5. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23

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.