Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.2.2
-
None
-
OS X Maverics later upgraded to Yosemite (both clean installations, we have just added support for OSX), intel processor.
Description
The specific .ui file created under QtCreator 3.1.2 (Windows 32 bit) cannot be opened on QtCreator 3.2.2 (OS X Maverics and Yosemite). The mouse pointer indicates busy state, but within reasonable amount time the opening operation doesn't come to an end. The rest of the GUI stays responsive. The problem does not exist for any other known .ui file. The file looks "fine" in text editor and everything runs fine under QtCreator 3.1.2 (Windows 32 bit).
The problem is probably related with the crash of the application on OS X when the form is instantiated.
After a little investigation I have prepared a minimal example which demonstrates the bug (see: hello.zip attached). It looks that the missing font is causing all the problems. If one removes
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>14</pointsize>
</font>
</property>
from the mainwindow.ui (in the project hello) everything start to work just fine - QtCreator successfully loads the file and the application does not crash in the constructor.
For me it looks like some check for the existence of the font in the system is missing somewhere...
Expected behavior:
the file opens as usual or the user gets notified about corrupted/non-compatible .ui file.
Attachments
Issue Links
- is replaced by
-
QTBUG-42728 QAction::setFont leads to crash on OS X if font not found (or custom app font from resource)
- Closed