QT Designer crash

Create issue
Issue #89 resolved
Johann Krauter created an issue

Qt Designer crashed when a QT-Widget is dragged above a itomPlugin-Widget.

Official response

  • M. Gronle

    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.

Comments (9)

  1. M. Gronle

    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?

  2. Johann Krauter 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.

  3. M. Gronle

    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.

  4. Oliver Schwanke

    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…

  5. M. Gronle

    @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?

  6. Log in to comment