Hey Michael, 2009/12/15 Michael Mayers <[email protected]>: > Hi List, > > ///////////////////////////////////////// > > First, I would like to say I am actually enjoying learning Wt. > I have been avoiding Web Programming for the longest time, > mainly because I just dont have time to learn all of the > different web technologies. > > I am primarily a C++ programmer, and am very familiar with Qt, > so Wt was a natural choice for me, and all of the other benefits > like security, browser compatibility, etc.. are nice too. > > My main comment is sometimes the documentation leaves something to be > desired.
We hear you. > ///////////////////////////////////////// > Case in point: > ///////////////////////////////////////// > > I cannot figure out how to get the proper on screen dimensions of a > widget in a form that a painter understands. > > These widgets are laid out with in a (arbitrary) layout hierarchy. > > How do I get the widgets CALCULATED (post layout) dimensions ? In general you cannot. The latest git version however will do what you want as now a WPaintedWidget will be properly managed by a layout manager. If you do not provide dimensions to your painted widget, the widget will be repainted everytime the layout manager resizes the widget, and will set the widget dimensions accordingly. The example below will thus work well, provided you put the widget inside a layout manager. Regards, koen ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
