Results 1 to 2 of 2

Thread: Default to specific tab within tab widget

  1. #1
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Default to specific tab within tab widget

    Just got news of a spec change to an app I'm working on...

    I have an icon that when clicked will display a tab widget with several tabs. Apparently I'm supposed to display a different default tab based on a user access level to the software (an admin level should default to the first tab, next level of access default to the 2nd tab).

    Is there anyway to control which tab is displayed? I'm using a clicked() signal on my icon and show() slot on the tab widget, but is it possible drill down to to the specific tab? I can't find anything anywhere...I'm moving amongst tabs fine but I'm lost on this...


    scott

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Default to specific tab within tab widget


Similar Threads

  1. Pass event (QWheelEvent) to a specific widget
    By stefanadelbert in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2021, 03:10
  2. Replies: 5
    Last Post: 14th February 2011, 14:06
  3. Setting a widget's QPalette to default?
    By Spectralist in forum Newbie
    Replies: 2
    Last Post: 29th December 2009, 21:47
  4. Context Menu for specific items in a Tree Widget
    By manekineko in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2009, 01:46
  5. Replies: 1
    Last Post: 3rd November 2009, 22:26

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.