| 691 | } |
| 692 | |
| 693 | Py::Object View3DInventorViewerPy::grabFramebuffer(const Py::Tuple& args) |
| 694 | { |
| 695 | if (!PyArg_ParseTuple(args.ptr(), "")) { |
| 696 | throw Py::Exception(); |
| 697 | } |
| 698 | QImage img = _viewer->grabFramebuffer(); |
| 699 | |
| 700 | PythonWrapper wrap; |
| 701 | wrap.loadGuiModule(); |
| 702 | #if QT_VERSION < QT_VERSION_CHECK(6, 9, 0) |
| 703 | return wrap.fromQImage(img.mirrored()); |
| 704 | #else |
| 705 | return wrap.fromQImage(img.flipped(Qt::Vertical)); |
| 706 | #endif |
| 707 | } |
| 708 | |
| 709 | Py::Object View3DInventorViewerPy::setOverrideMode(const Py::Tuple& args) |
| 710 | { |