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

william.crocker at analog.com william.crocker at analog.com
Wed Sep 9 02:45:12 CEST 2009


> Does Non-Gui mode means it runs on the system which does not support graphics?
> According to my understanding you can't use QLayout without QWidgets.

That is the problem.

> At the same time if your system supports GUI, it does not have to be visible.
> So running from command line might not prevent you to create an instance of the widgets (even hidden).

I need to run on compute-farms machines which will not support GUI activity.

> If this not an option you might need to create your own layout class which will work with bounding boxes.

That is the rub. Layout is a general need.
It is too bad that Qt has tied it so closely to GUI when there
is very little need for GUI. All the top level of a layout needs
is the size. It does not need to be the size of a QWidget.





More information about the Qt-interest-old mailing list