[Qt-interest] How to layout off-line.

william.crocker at analog.com william.crocker at analog.com
Wed Sep 9 02:36:27 CEST 2009


> You can use qlayoutitems without an X11 connection so you could come  
> up with an abstraction whereby you can have your widgets become non  
> widgets that can layout and render themselves through a define or  
> something. Note that I am not sure fonts will work without an X11  
> connection.
>

Thanks for the direction, but...

A QLayoutItem does not appear to be much good
unless you add it to a QLayout add a QLayout will
not act to layout its child items unless it
has a parent Widget.

> --
> 
> Anders
> 
> On Sep 8, 2009, at 7:25 AM, "ext william.crocker at analog.com" <william.crocker at analog.com 
>  > wrote:
> 
>> Gang:
>>
>> My application displays a complex scene of custom
>> widgets. These scenes are conveniently arranged
>> using the Qt Layout system and classes.
>>
>> I need to support printing of these presentations
>> when the application runs in non-GUI mode,
>> perhaps from the command line.
>>
>> So, the question is, how do I layout the scene
>> for off-line printing if the Qt layout system assumes
>> inheritance from QWidget which requires an X11
>> (GUI) connection?
>>
>> Thanks in advance.
>>
>> Bill
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 



More information about the Qt-interest-old mailing list