Results 1 to 3 of 3

Thread: Qtabwidget - how to add a button to all tabs?

  1. #1
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qtabwidget - how to add a button to all tabs?

    My app loads a configuration file and breaks it into several tabs. I want the user to have access to a "save" button in the bottom of all tabs. Which is the smarter way to do that?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qtabwidget - how to add a button to all tabs?

    Put the tab widget in a layout and put a button below it. If you only want to save the current widget settings connect the buttons click to a slot where you query the current index of you tab widget and do the savings accordingly.

  3. The following user says thank you to Lykurg for this useful post:

    creep33 (22nd July 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qtabwidget - how to add a button to all tabs?

    Ok, that was my first thought. I Just had to check if there wasn't a smarter way to do it. Thnaks!

Similar Threads

  1. QTabWidget with same tabs
    By Djony in forum Qt Programming
    Replies: 20
    Last Post: 24th December 2011, 12:20
  2. Replies: 7
    Last Post: 8th April 2009, 08:42
  3. QTabWidget - Add Tabs dynamically
    By fruzzo in forum Qt Programming
    Replies: 11
    Last Post: 27th February 2008, 08:26
  4. Delayed Rendering of QTabWidget Tabs
    By mclark in forum Qt Tools
    Replies: 13
    Last Post: 14th May 2007, 22:53
  5. Switching off all tabs in QTabWidget
    By Gopala Krishna in forum Qt Programming
    Replies: 7
    Last Post: 30th August 2006, 17:10

Tags for this Thread

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.