Results 1 to 2 of 2

Thread: QTabWidget: How to prevent user from switching between tabs without disabling tabs;

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question QTabWidget: How to prevent user from switching between tabs without disabling tabs;

    Hello;

    How to prevent user from switching between tabs without disabling tabs?

    Suppose I have Tab1, Tab2, Tab3 in the QTabWidget. I want user to stay on Tab2 while still not disabling Tab1 and Tab3, just want to prevent user to go to Tab1 and Tab3.

    Thanks;

    Mut.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget: How to prevent user from switching between tabs without disabling tab

    In my opinion disabling the tabs is the proper way to solve the problem. Other than that you can intercept mouse events but if I were a user of your program, I would just get annoyed by not being able to switch tabs despite a visual hint that the tab is available.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTabWidget vertical tabs ???
    By jesse_mark in forum Newbie
    Replies: 3
    Last Post: 12th July 2013, 22:20
  2. QTabWidget with same tabs
    By Djony in forum Qt Programming
    Replies: 20
    Last Post: 24th December 2011, 13:20
  3. Qt Designer How to set a QTabWidget with two rows of tabs?
    By lmfgy123 in forum Qt Tools
    Replies: 1
    Last Post: 17th November 2010, 07:49
  4. Qtabwidget - how to add a button to all tabs?
    By creep33 in forum Qt Programming
    Replies: 2
    Last Post: 22nd July 2010, 20:05
  5. Switching off all tabs in QTabWidget
    By Gopala Krishna in forum Qt Programming
    Replies: 7
    Last Post: 30th August 2006, 18:10

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.