[Qt-interest] Adding menu for tabwidget
rajasekharan
websweetweb at gmail.com
Thu Aug 20 09:05:08 CEST 2009
Yuvraj
Instead of using a set of tab widgets and super impose a set of buttons
on them, you can simply use a QHBoxLayout and then add the buttons to it
and make those buttons show a menu..
Raj
Yuvaraj R wrote:
>> Thats why i am asking , added one pusg button to tab widget
>> QPushButton *button = new QPushButton(ui->tabWidget);
>> But i am getting getometry problem
>> I tried with
>> button->setGeometry(ui->tabWidget.x(),ui->tabWidget.y(),20,20)
>> but i am not able to set properly
>> Thanks
>>
>> Yuvaraj R
>> On Thu, Aug 20, 2009 at 11:18 AM, rajasekharan <websweetweb at gmail.com
>> <mailto:websweetweb at gmail.com>> wrote:
>>
>> You can use QMenuBar instead if you are using a QMainWindow. In
>> case you are not usin QMainWindow, you can use a set of buttons
>> instead of tabs and then use a QMenu to show a menu when those
>> buttons are clicked.
>>
>> Kind Regards,
>> Raj Sekharan
>>
>> Yuvaraj R wrote:
>>> Dear All
>>> I have near 10 tabs in my tab widget.. I don't like to display
>>> the 10 tabs in tabwidget..
>>> I want to provide menu for tabwidget..
>>> whenever user clciking the first tab ,menu will be display.
>>> Any ideas?
>>> how do we get the notification,suppose first tab icon is pressed..
>>> Thanks
>>> Yuvaraj R
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090820/5dc6efcc/attachment.html
More information about the Qt-interest-old
mailing list