0

I have several "curves" (something like this) these curves are contained in a QVBoxLayout and this in turn is contained in a QScrollArea.

my question is, is there any way to keep these "curves" as an image file? ie jpg, png, tiff, etc..

thanks

jackajack
  • 153
  • 1
  • 1
  • 11

1 Answers1

2

You can always use QPixmap::grabWidget to create a pixmap from a widget and save that.

Or QWidget::render to render the widget with a certain QPainter, which you can assign to a savable image

BeniBela
  • 16,412
  • 4
  • 45
  • 52