[Qt-interest] Regarding QTabWidget::setTabEnabled()

Patric userqt at gmail.com
Wed Jul 1 16:44:43 CEST 2009


I'm sorry, 
I send this by mistake I found out the answer. 
Thank you anyway. 

Regards, 
Patric
  ----- Original Message ----- 
  From: Patric 
  To: qt-interest at trolltech.com 
  Sent: Wednesday, July 01, 2009 5:39 PM
  Subject: Regarding QTabWidget::setTabEnabled()


  Hello, 
  I'm reading the documentation for this method :

  If enable is true, the page at position index is enabled; otherwise the page at position index is disabled. The page's tab is redrawn appropriately.

  Note that even a disabled tab/page may be visible. If the page is visible already, QTabWidget will not hide it; if all the pages are disabled, QTabWidget will show one of them.




  If I have tab widget with 5 tabs, and I want to make the 5th not visible, how to do it ? 
  According to this "If the page is visible already, QTabWidget will not hide it" I can't hide only one tab, am I right ? 

  Regards, 
  Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090701/6e95d6c9/attachment.html 


More information about the Qt-interest-old mailing list