Results 1 to 2 of 2

Thread: "Render" Qt dialog window from ".ui" file

  1. #1

    Default "Render" Qt dialog window from ".ui" file

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: "Render" Qt dialog window from ".ui" file

    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
    Qt Code:
    1. QPixmap pix (w->size());
    2. w->render(&pix);
    3.  
    4. pix.save (outFileName);
    To copy to clipboard, switch view to plain text mode 

    Is there any chance to do that from within a .NET application?
    This is a question for a .NET/C# forum
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Replies: 9
    Last Post: 20th May 2010, 10:55
  2. Replies: 3
    Last Post: 15th February 2010, 18:27
  3. Replies: 3
    Last Post: 8th July 2008, 20:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 16:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.