Hi,
I have a mainwindow and a QTabWidget in that window. The QTabWidget had 2 tab. I create this window using QT4.2.2 designet. Now I want add a lebel in tab 0 using code!!!. How can I do it?
Hi,
I have a mainwindow and a QTabWidget in that window. The QTabWidget had 2 tab. I create this window using QT4.2.2 designet. Now I want add a lebel in tab 0 using code!!!. How can I do it?
Please don't double post. (link)
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Well, the easiest way I think is just to add the label. Worry about layouts later:
Qt Code:
tabWidget->insertTab( -1, label, "Tab Text");To copy to clipboard, switch view to plain text mode
That's about it.
Regards
Bookmarks