Re: [Development] Hiding Tabs in QTabWidget

2012-04-02 Thread André Pönitz
On Thu, Mar 29, 2012 at 09:42:43PM +0200, Carsten Breuer wrote: > Hi Jordi, > > > great :-) Good News :-). > > BTW: > > I guess in Qt style it should be > >bool tabVisible(int index) const; >void setTabVisible(int index, bool); Jordi's bool isTabVisible(int index) const; was cor

Re: [Development] Hiding Tabs in QTabWidget

2012-03-29 Thread Carsten Breuer
Hi Jordi, great :-) Good News :-). BTW: I guess in Qt style it should be bool tabVisible(int index) const; void setTabVisible(int index, bool); Thanks a lot and best Regards, Carsten Am 29.03.2012 14:29, schrieb Jordi Pujol: > Hi Carsten, > > I'm working *right now* in the implem

Re: [Development] Hiding Tabs in QTabWidget

2012-03-29 Thread Jordi Pujol
Hi Carsten, I'm working *right now* in the implementation & test of 2 new methods ( I have to say Girish pointed me in the right direction ) : bool isTabVisible(int index) const; void setTabVisible(int index, bool); I'm testing and still with minor painting problems, it looks fine. You w

Re: [Development] Hiding Tabs in QTabWidget

2012-03-29 Thread Carsten Breuer
Hi Jordi, thanks for the answer. Im looking forward to see you changes in QT 5.1 :-). Best Regards, Carsten Am 27.03.2012 07:51, schrieb Jordi Pujol: > Sorry, answer sent only to Carsten ( my mistake... ) > >> Afaik you only have the option to remove the tab . I've implemented >> that fu

Re: [Development] Hiding Tabs in QTabWidget

2012-03-27 Thread Girish Ramakrishnan
Hi Jordi, Please push the change to gerrit and put me in as the reviewer. Girish On Mon, Mar 26, 2012 at 10:51 PM, Jordi Pujol wrote: > Sorry, answer sent only to Carsten ( my mistake... ) > >> Afaik you only have the option to remove the tab . I've implemented >> that functionality, but right n

Re: [Development] Hiding Tabs in QTabWidget

2012-03-27 Thread Diego Iastrubni
On Mon, Mar 26, 2012 at 9:43 PM, Carsten Breuer wrote: > Is there any other function that i can use to hide tabs? > Use QTabWidget::tabBar()->hide() to hide all the tabs. ___ Development mailing list Development@qt-project.org http://lists.qt-project.

Re: [Development] Hiding Tabs in QTabWidget

2012-03-26 Thread Jordi Pujol
Sorry, answer sent only to Carsten ( my mistake... ) > Afaik you only have the option to remove the tab . I've implemented > that functionality, but right now I cannot contribute it to Gerrit > ( no maintainer for QWidgets module & no plans... ). > > If someone can tell me how to do it I'll be gl

[Development] Hiding Tabs in QTabWidget

2012-03-26 Thread Carsten Breuer
Hi guys, i just spend some hours with trying to hide a tab in a QTabWidget that was designed with QtCreator (ui). After searching the web it seems to me that the only way to solve this is to use the removeTab function. I don't want to use removeTab, because this means that i have to save the tab