I cannot really reproduce this. Can you give an example (maybe using a screenshot or pre-defined ui-file) to explain which steps lead to this crash?
QT Designer crash
Qt Designer crashed when a QT-Widget is dragged above a itomPlugin-Widget.
Official response
Comments (9)
-
-
reporter If you drag for example a push button above the itom plot-widget the qt designer crashes as shown in the first screenshot. In the second screenshot you can see the call stack.
This looks like a QT bug.
-
I have the feeling, that this crash only occurs for older ui-files, meaning files that have been saved with an older version of “itom”.
@Johann Krauter : Please check if an affected ui-file (opened in an editor) contains any of the following lines (at the end of the file):
<customwidgets> <customwidget> <class>Itom1DQwtPlot</class> <extends>QMainWindow</extends> <header>itom1DQwtPlot.h</header> <container>1</container> </customwidget> <customwidget> <class>Itom2dQwtPlot</class> <extends>QMainWindow</extends> <header>itom2dqwtplot.h</header> <container>1</container> </customwidget> </customwidgets>
If so, please remove the line
<container>1</container>
for Itom1dQwtPlot as well as Itom2dQwtPlot and try to reproduce the error.
I could reproduce the crash with the ui-file embedded2DwLinePlot.ui (demo/ui). When I removed this wrong line, the crash did not occur any more.
-
Appendix: The same holds for the designer plugin EvaluateGeometricsFigure
-
-
Just to add some things that prevent qtdesigner from starting are itomIsoGLFigurePlugin, evaluate geometrics and matplotlibplot. Removing them from the designer directory lets qtdesigner load…
-
@Oliver Schwanke : possibly you mention something which is not related to this issue. In this issue, all plugins can be loaded, but if they are contained in very old .ui-files and you start dragging some other widget over these itom widgets, the designer crashes. This is only due to some unwanted, wrong lines in the .ui file (opened with an editor). If these lines are removed, everything is fine. Do you have the same issue? Or do you have another problem? If so, we should open another issue. Which OS and Qt Version is it?
-
- changed version to 4.0
-
- changed status to resolved
- Log in to comment
I have the feeling, that this crash only occurs for older ui-files, meaning files that have been saved with an older version of “itom”.
@Johann Krauter : Please check if an affected ui-file (opened in an editor) contains any of the following lines (at the end of the file):
If so, please remove the line
for Itom1dQwtPlot as well as Itom2dQwtPlot and try to reproduce the error.
I could reproduce the crash with the ui-file embedded2DwLinePlot.ui (demo/ui). When I removed this wrong line, the crash did not occur any more.