PDA

View Full Version : close button for tabwidget



sepehr
2nd March 2009, 14:16
after googling a little bit,it turned out that in qt 4.5 tabs of QTabWidget could have close button,but for now I'm using qt 4.4 and I don't like using candidate version of 4.5, plus struggling with new upcoming problems when using another qt version for my app,so how can I add close button for my tabs just like firefox?something like a little pixmap at the corner of each tab responsible for closing the corresponding tab
---
thanks in advance

faldzip
2nd March 2009, 14:57
There is one simple way but for inserting one button for all tabs (like in Qt Assistant) - just add it as corner widget to QTabWidget (setCornerWidget()). I think adding close button for each tab might be more complicated.