Hello,
The following code segfaults in Qt-5.6.2 but works in Qt-4.8.6. Both are using qwt-6.1.3
QString pngfile
=pathinfo.
path()+"/"+"a_fat.png";
renderer.
renderDocument(plot, pngfile,
"png",
QSizeF(300,
200),
150);
QString pngfile=pathinfo.path()+"/"+"a_fat.png";
renderer.renderDocument(plot, pngfile, "png", QSizeF(300, 200), 150);
To copy to clipboard, switch view to plain text mode
However, if try to export an svg it works fine in Qt-5.6.2
QString svgfile
=pathinfo.
path()+"/"+"a_fat.svg";
renderer.
renderDocument(plot, svgfile,
"svg",
QSizeF(300,
200),
150);
QString svgfile=pathinfo.path()+"/"+"a_fat.svg";
renderer.renderDocument(plot, svgfile, "svg", QSizeF(300, 200), 150);
To copy to clipboard, switch view to plain text mode
I compared the Qt build options on my Gentoo Linux box and they both had png support.
#emerge -pv qtgui:4
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-qt/qtgui-4.8.6-r4:4::gentoo USE="accessibility cups exceptions glib mng qt3support tiff xinerama xv (-aqua) -debug -egl -gtkstyle -nas -nis -pch -trace" ABI_X86="(64) -32 (-x32)" 0 KiB
# emerge -pv qtgui
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-qt/qtgui-5.6.2:5/5.6::gentoo USE="dbus egl gif jpeg png udev xcb -accessibility -debug -eglfs -evdev -gles2 -gtkstyle -ibus -libinput {-test} -tslib -tuio" 0 KiB
#emerge -pv qtgui:4
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-qt/qtgui-4.8.6-r4:4::gentoo USE="accessibility cups exceptions glib mng qt3support tiff xinerama xv (-aqua) -debug -egl -gtkstyle -nas -nis -pch -trace" ABI_X86="(64) -32 (-x32)" 0 KiB
# emerge -pv qtgui
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-qt/qtgui-5.6.2:5/5.6::gentoo USE="dbus egl gif jpeg png udev xcb -accessibility -debug -eglfs -evdev -gles2 -gtkstyle -ibus -libinput {-test} -tslib -tuio" 0 KiB
To copy to clipboard, switch view to plain text mode
I am at loss to explain why the system doesnt produce a png. Any idea?
Thanks
Bookmarks