Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, July 2007
How to remove tab icon ?


Message 1 in thread

Hi Everyone,
I use QTabWidget in my QT GUI application. I use tab icon to
represent extra information for each tab page.

But I found I need to remove the tab icon under some
circumstances.

I can't find any method to remove a tab icon.

Could anybody help me out ?

Regards,
Pagan


--
 [ signature omitted ] 

Message 2 in thread

Pagan Chou wrote:
> Hi Everyone,
> I use QTabWidget in my QT GUI application. I use tab icon to
> represent extra information for each tab page.
>
> But I found I need to remove the tab icon under some
> circumstances.
>
> I can't find any method to remove a tab icon.
>
> Could anybody help me out ?
>
> Regards,
> Pagan
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>   
You can use this construction for example:

setTabIcon(index, QIcon());


--
 [ signature omitted ] 

Message 3 in thread

I did not try out, but setting an empty icon might do the trick.

Regards,
Andrea

"Pagan Chou" <pagan_chou@xxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:<f89m0t$nri$1@xxxxxxxxxxxxxxxxxx>...
> Hi Everyone,
> I use QTabWidget in my QT GUI application. I use tab icon to
> represent extra information for each tab page.
> 
> But I found I need to remove the tab icon under some
> circumstances.
> 
> I can't find any method to remove a tab icon.
> 
> Could anybody help me out ?
> 
> Regards,
> Pagan
> 
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 


--
 [ signature omitted ]