[Qt-interest] Adding menu for tabwidget
Yuvaraj R
yuvaraj at ongobiz.com
Thu Aug 20 10:12:38 CEST 2009
Thanks
But like that i want to set for tab in tabwidget..
Any idears ?
Thanks
Yuvaraj R
On Thu, Aug 20, 2009 at 1:29 PM, rajasekharan <websweetweb at gmail.com> wrote:
> What Skype is using are not tabs but pushbuttons.
>
> That effect which you are trying to achieve can be done using the setMenu
> feature of the QPushButton. Please take a look
> at this function below. It has a picture of what you are trying to achieve:
>
> http://doc.trolltech.com/4.5/qpushbutton.html#setMenu
>
>
> Yuvaraj R wrote:
>
> No i am displaying some thing every tab..
>
> thats why only.. i want to use the tab widget .
>
> On Thu, Aug 20, 2009 at 12:43 PM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
>
>> please see the attached image..when i am clicking down arrow ,menu will be
>> display
>>
>> like that i want to get the tabs in tab widget .
>>
>> Some thing as implemmented in latest version of skype
>>
>> Thanks
>>
>> Yuvaraj R
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 20, 2009 at 12:30 PM, rajasekharan <websweetweb at gmail.com>wrote:
>>
>>> Yuvraj,
>>>
>>> I don't understand what you are trying to do, could you be more elaborate
>>> on what you are trying to do?
>>>
>>> Kind Regards,
>>> Raj Sekharan
>>>
>>> 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>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 listQt-interest at trolltech.comhttp://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>
>>>
>>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> 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/644d44f5/attachment.html
More information about the Qt-interest-old
mailing list