Qt-interest Archive, February 2007
customize QListView frame.
Message 1 in thread
Hey all,
I'd like to modify the frame of a QListView widget,
I'm using my own QStyle class which inherits QPlastiqueStyle.
What primitive shall I intercept in QStyle::drawPrimitive function?
Thanks.
Ben.
--
[ signature omitted ]
Message 2 in thread
bunjeee wrote:
> Hey all,
>
> I'd like to modify the frame of a QListView widget,
>
> I'm using my own QStyle class which inherits QPlastiqueStyle.
>
> What primitive shall I intercept in QStyle::drawPrimitive function?
>
Since a QListView is a QFrame, use PE_Frame.
Girish
--
[ signature omitted ]
Message 3 in thread
Thank you Girish, it's working,
Now my issue is :
I'm trying to do a rounded frame for my QListWidget item.
But the widget itself is a large white QRect,
thus overlaping my custom style rounded frame.
Any idea to change the size the widget's frame itself ?
Thanks.
Ben.
> ----- Original Message -----
> From: "Girish Ramakrishnan" <girish@xxxxxxxxxxxxx>
> To: "bunjeee" <bunjeee@xxxxxxx>; <qt-interest@xxxxxxxxxxxxx>
> Sent: Wednesday, February 21, 2007 5:13 AM
> Subject: Re: customize QListView frame.
>
>
>> bunjeee wrote:
>>> Hey all,
>>>
>>> I'd like to modify the frame of a QListView widget,
>>>
>>> I'm using my own QStyle class which inherits QPlastiqueStyle.
>>>
>>> What primitive shall I intercept in QStyle::drawPrimitive function?
>>>
>>
>> Since a QListView is a QFrame, use PE_Frame.
>>
>> Girish
>>
>> --
>> 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 ]
Message 4 in thread
Thank you Girish, it's working,
Now my issue is :
I'm trying to do a rounded frame for my QListWidget item.
But the widget itself is a large white QRect,
thus overlaping my custom style rounded frame.
Any idea to change the size the widget's frame itself ?
Thanks.
Ben.
> ----- Original Message -----
> From: "Girish Ramakrishnan" <girish@xxxxxxxxxxxxx>
> To: "bunjeee" <bunjeee@xxxxxxx>; <qt-interest@xxxxxxxxxxxxx>
> Sent: Wednesday, February 21, 2007 5:13 AM
> Subject: Re: customize QListView frame.
>
>
>> bunjeee wrote:
>>> Hey all,
>>>
>>> I'd like to modify the frame of a QListView widget,
>>>
>>> I'm using my own QStyle class which inherits QPlastiqueStyle.
>>>
>>> What primitive shall I intercept in QStyle::drawPrimitive function?
>>>
>>
>> Since a QListView is a QFrame, use PE_Frame.
>>
>> Girish
>>
>> --
>> 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 ]
Message 5 in thread
Hi.
bunjeee wrote:
> Thank you Girish, it's working,
> Now my issue is :
>
> I'm trying to do a rounded frame for my QListWidget item.
>
> But the widget itself is a large white QRect,
> thus overlaping my custom style rounded frame.
>
> Any idea to change the size the widget's frame itself ?
>
I think you are looking for QStyle::SE_FrameContents.
Girish
--
[ signature omitted ]