tags:

views:

44

answers:

2

I am learning UI programming using QT and i am bit confused by what size of an widget means.

Is it the number of pixels? or does it literally mean size measured in inch, cm or something?

If it is measured in pixels, then isn't the actual size depends on the pixel density?

+3  A: 

Qt uses pixels as a measure for widget size; but it's hardly ever necessary to explicitly specify the size of a widget using pixels. Instead, use the provided functionality for layout management. This way, your application/dialog layout will easily scale to different window or display sizes.

Greg S
+2  A: 

It actually depends on the Window Geometry. Check this one out.

alt text

More documentation can be found here.. Hope it helps..

liaK