Gnats 4615: When exporting workspace or plots, jpeg format
is not listed
Phil Weinstein -- 12-17-2008 -- HIT REFRESH
-- Gnats
Record / Public
SOLVED: SEE SOLUTION
On the training machines, when you go to export a plot or the workspace
image, it does not list jpg or jpeg as one of the supported file types. If
you type in the extension, it works fine. It does have both jpg
extensions on my machine. What is different about the training machines? |
The relevant code is highlighted:
File: Q3GUI/ExportImageDlg.cpp: ExportImageDlg::ExportImageDlg(QWidget* parent, const char* name, bool modal) : Q3FileDialog(parent, name, modal), _dir(""), ... ... ... { ... ... ... // Add all the supported image types to the file filter. char (*imgFormat)(NULL); int selectedFilter(0); QList |
I have a question posted on the Qt Centre blog:
QImageWriter supportedImageFormats only sometimes includes JPEG. Why? On some of our installations built with Qt 4.3.3, users are seeing the results of QImageWriter::supportedImageFormats to be only these items -- and this is a problem for us:
On other installations, the following items are also shown:
Why might this be? And how can we make the JPEG options show up on all installations? Message
URL: |
Q3GUI/ExportImageDlg:
Copy the "jpeg" related files from a Qt4 development area, e.g. in C:\RiverWare\tools\Qt4\plugins\imageformats\ to a new imageformats subdirectory where the riverware.exe program exists: