Ticket #43873

Qt: QImageReader::supportedImageFormats() called before QApplication created

Open Date: 2022-02-16 06:06 Last Update: 2022-08-07 06:21

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
3

Details

https://doc.qt.io/qt-6/qimagereader.html#supportedImageFormats says about QImageReader::supportedImageFormats(): "Note that the QApplication instance must be created before this function is called."

We call the function from initial tileset setup -> gfx_fileextensions() (e.g. for loading intro gfx). QApplication is instantiated only later in ui_main().

Ticket History (3/7 Histories)

2022-02-16 06:06 Updated by: cazfi
  • New Ticket "Qt: QImageReader::supportedImageFormats() called before QApplication created" created
2022-07-19 16:27 Updated by: cazfi
Comment

Hope to resolve this early in the 3.0.4 cycle (to have it in testing for the entirety of a release cycle)

2022-07-30 01:28 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-08-07 06:21 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login