Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, February 2007
Tux Example, Resizing????


Message 1 in thread

Hi Trolls,
I have implement my own shaped widget folowing the Tux example.
But I need that my widget had the ability to resize.
Could someone give some pointer on how to acomplish this?
How can i mantaing the mask shape given by the image when expanding the 
form?
Is there another example that i could see with this implemented?
Please, any help on this will be much appreaciated
Thanks
CJC

_________________________________________________________________
Search for grocery stores. Find gratitude. Turn a simple search into 
something more. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG

--
 [ signature omitted ] 

Message 2 in thread

Christopher Jimenez wrote:
> I have implement my own shaped widget folowing the Tux example.
> But I need that my widget had the ability to resize.

Implement resizeEvent() and in there resize the pixmap member and reset 
the mask.

Good Luck,
--Justin

begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard