Robotics StackExchange | Archived questions

Ignition gui plugin Qt Charts Problem

I want to add a plugin to the ignition gui that contains a simple line series chart i call the plugin "Plotting" I added all required code in CMakeList files, added all required code to make a plugin in ignition... and this is work for any QML Code except the Qt Charts ! when i put Qt Charts in the QML file of my plugin, it displays an error in standalone running (ign gui -s Plotting)

i have a vaild qmlscene of my code Screenshot from 2020-03-23 09-14-17

but when i try to run it with (ign gui -s Plotting) i get this Screenshot from 2020-03-23 09-40-36 Screenshot from 2020-03-23 09-40-24

.. and if i change the charts code to any code that hasn't charts, it works !

thank you for your time :D

Asked by Amr Elsersy on 2020-03-23 02:36:01 UTC

Comments

It would be easier to help if you shared a minimal way to reproduce the problem, otherwise it's hard to know exactly what's going on.

Asked by chapulina on 2020-03-23 11:20:38 UTC

Answers

Okay, the problem is " ignition dose not run the plugin if it contains any Qt Charts components "

i am trying to make a very simple plugin .. it works if my .qml file contains any qml components (except charts components) and this is the code https://github.com/AmrElsersy/ignition-charts-plugin

but when my .qml file has any simple qtcharts component it gives me that error Screenshot from 2020-03-24 01-02-04

I added the required cmake instructions(for Qt5 Charts) in the CMakeList file but it dose not work.

Asked by Amr Elsersy on 2020-03-23 18:02:39 UTC

Comments

I see you figured out the problem on https://answers.gazebosim.org//question/24669/qt-charts-with-ignition-gui-plugin/ , well done! Feel free to close this question.

Asked by chapulina on 2020-03-27 11:33:20 UTC