davethomaspilot
24th September 2014, 12:35
I have a window that contains a horizontal layout that consists of 1-6 widgets. Each widget is a simple label with a pixmap.
Basically, the window consists of from 1-6 images that scale so they fit horizontally in a fixed window size.
I'd like to save a "composite image" to a file that's what's seen inside the window's horizontal layout.
I've seen examples on how to do this in Qt 5:
myWidget->grab().save("image.png");
but I need to do it in Qt4.8.
Is there a similar idiom to do it in Qt4?
Thanks,
Dave Thomas
Added after 17 minutes:
Actually, the layout always contains six widgets. But, only 1-6 are set to be visible.
That's how the scaling is done so they fit the window size.
Basically, the window consists of from 1-6 images that scale so they fit horizontally in a fixed window size.
I'd like to save a "composite image" to a file that's what's seen inside the window's horizontal layout.
I've seen examples on how to do this in Qt 5:
myWidget->grab().save("image.png");
but I need to do it in Qt4.8.
Is there a similar idiom to do it in Qt4?
Thanks,
Dave Thomas
Added after 17 minutes:
Actually, the layout always contains six widgets. But, only 1-6 are set to be visible.
That's how the scaling is done so they fit the window size.