(ui): problem in fwGuiQml::MessageDialog
Summary
When loading a CT image using TutoSceneQt3DQml application, the application crash instead of displaying a warning pop-up.
Steps to reproduce
Build TutoSceneQt3DQml. Open a mesh (Ctrl+O). Load a CT file.
Dev environment
- OS: Linux, Windows
- CMake version: 3.16
- Compiler: gcc-8
- Build type: debug
What is the current bug behavior?
When loading a CT file, the application crashes with this error:
Assertion 'window' failed: The Qml File MessageDialog is not found or not loaded
. (see line 138 in MessageDialog.cpp
).
When attempting to load MessageDialog.qml in createComponent()
(see line 137) the application fails to import styleQml
module.
What is the expected correct behavior?
The application should display a warning pop-up without loading any data.
Relevant logs and/or screenshots
The following discussion from !430 (merged) should be addressed:
-
@rmanciaux started a discussion: If I load a CT image with the qml app, 2020-06-18_11-36-12I've got this error:
Possible fixes
Add the requirement on styleQml and guiQml in the tutorial. Check that guiQt or fwGuiQt are not a dependency of the tutorial.