PDA

View Full Version : "Render" Qt dialog window from ".ui" file



BitEater
8th July 2011, 13:39
Hello all,

for a new .NET (C#) project, I need to be able to load a Qt .ui file and "render" it to a bitmap resource. The window which was specified in the .ui file should not be visible on the screen.

Is there any chance to load a .ui file and "render" it to a bitmap (pixel graphics) resource (memory object or file) without displaying it?
Is there any chance to do that from within a .NET application?

Thanks for any help!

BitEater

mcosta
8th July 2011, 15:40
HI


Is there any chance to load a .ui file and "render" it to a bitmap (pixel graphics) resource (memory object or file) without displaying it?

You can load UI File with QUiLoader and save image with


QPixmap pix (w->size());
w->render(&pix);

pix.save (outFileName);



Is there any chance to do that from within a .NET application?
This is a question for a .NET/C# forum