PDA

View Full Version : Custom Widget Visuals



qtoptus
16th April 2010, 00:07
I've created a custom widget that I can use in the Designer. However I cannot see it on forms or other widget when adding it until I click on it, how can I show any position/size guide for the widget so that I know it's there on a form, and it's dimensions? Or can I render it in a distinct color/image as an indicator? How?

Help appreciated.

faldzip
16th April 2010, 09:52
Did you implement sizeHint() (and friends) for your widget?

qtoptus
16th April 2010, 23:54
Yes I define an initial size, but my question which function to implement to get a visual clue of the control in the designer when placed in a form or so...?