2008/11/18 Wim Dumon <[EMAIL PROTECTED]>: > 2008/11/18 0xd34df00d <[EMAIL PROTECTED]>: >> Hi, >> >> I create images in my program at runtime, is there a way to show them >> to the end-user without saving them to disk and generating a link to >> them? > > Maybe the vector graphics painting API is suitable, instead of > generating bitmap images? That would do for my own images, but I try to solve this problem applied to adaptor from QAbstractItemModel to WAbstractItemModel, converting DecorationRole and the corresponding QIcon to Wt's "format".
>> If there isn't such a way, the first solution that comes to mind >> is to keep them in memory if they are small or write them to a >> temporary storage if they have a big memory footprint and handle all >> requests to them inside of Wt. > > That you can do with WMemoryResource or WFileResource, or indeed a > link to a temporary file. See also examples/style/CornerImage.C Oh well, I'll try to do the previously mentioned thing with WMemoryResource, seems like it's the perfect tool for this. > Regards, > Wim. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > -- Rudoy Georg LeechCraft — http://sourceforge.net/projects/leechcraft and http://deviant-soft.ws Spicy — http://deviant-soft.ws ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
