Results 1 to 2 of 2

Thread: Add Widget to QFileDialog

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Add Widget to QFileDialog

    I seem to remember in Qt3 that there was the ability to add buttons to the open file dialog along the sides or bottom. I was wondering if there is a way to add a series of 5 buttons (similar to the file dialogs in Windows) that act as shortcuts to user diefined directorys without subclassing QDialog and building the open file from scratch.

  2. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Add Widget to QFileDialog

    I wondered about this some time ago and was led to believe that this API would be on Trolltech's 'TODO' list.

    In the meantime, I got around this by subclassing QFileDialog, getting hold of the internal layout and inserting my controls into sublayouts within that.

    It works just fine and this is what the addWidget() APIs should do (once implemented).
    Save yourself some pain. Learn C++ before learning Qt.

Similar Threads

  1. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  2. minimize child widget
    By sreedhar in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2006, 12:02
  3. Replies: 4
    Last Post: 24th March 2006, 22:50
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 20:00

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
  •  
Qt is a trademark of The Qt Company.