Ticket #6705 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Windows: Qt image plugins don't load

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: minor Milestone: Release 2.6
Component: Framework Keywords: Maintenance
Cc: Blocked By:
Blocking: Tester: Nick Draper

Description

This only affects a development copy of Mantid.

If you run MantidPlot from a development build & it is not on the machine that built Qt in the first place then the image plugins don't load. This is most noticeable in the about box that is missing the gif icons.

Qt hard codes it's plugin/library paths at build time but can be overridden using a qt.conf file. This file must be in the directory of the application for it to be loaded. This is the case in the bundled up installer version but not for a developer.

Some CMake jiggery pokery is required to construct a file that can be used for the builds.

Change History

comment:1 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:2 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Martyn Gigg

comment:3 Changed 7 years ago by Martyn Gigg

  • Keywords Maintenance added

comment:4 Changed 7 years ago by Martyn Gigg

Generate a qt.conf for windows builds.

This will allow the MantidPlot to find the Qt plugins located in third party. Refs #6705

Changeset: 54e34d0269ac53eda2b680a4b9446be5081e79b3

comment:5 Changed 7 years ago by Martyn Gigg

Generate a qt.conf for windows builds.

This will allow the MantidPlot to find the Qt plugins located in third party. Refs #6705

Changeset: 54e34d0269ac53eda2b680a4b9446be5081e79b3

comment:6 Changed 7 years ago by Martyn Gigg

  • Status changed from assigned to accepted

Branch: feature/6705_qt_conf_windows

Tester: THIS NEEDS TO BE TESTED ON WINDOWS

The qt plugins are in the Third_Party/lib/win[ARCH]/qtplugins but Qt can't find them out of the box. This means that, for example before the merge, if you click "Help->About MantidPlot" then most of the images will be missing.

After the code has been merged run a build and make sure the MantidQtAPI target was built. You should find a qt.conf file in the same directory as the MantidPlot executable. Running MantidPlot and clicking "Help->About MantidPlot" you will see all of the images are now restored.

comment:7 Changed 7 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:8 Changed 7 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

comment:9 Changed 7 years ago by Nick Draper

  • Status changed from verifying to closed

tested in release build on my win64 pc that definitely had missing images before. All images present - hooray.

comment:10 Changed 7 years ago by Nick Draper

  • type changed from enhancement to task

ticket changed to a task as it holds little benefit for end users, not that it isn't appreciated by confused developers.

comment:11 Changed 7 years ago by Martyn Gigg

Generate a qt.conf for windows builds.

This will allow the MantidPlot to find the Qt plugins located in third party. Refs #6705

Changeset: 54e34d0269ac53eda2b680a4b9446be5081e79b3

comment:12 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7551

Note: See TracTickets for help on using tickets.