Problems with cumbia-Qtcontrols in Qtdesigner

Hi,

I’m having problems with cumbia.
I think I have installed cumbia-libs from elettra correctly, cumbia, modules, plugins, basic applications, and I configured the ‘.pri’ and ‘.pro’ files too. The only thing I haven’t installed is epic-controls because i think its not necessary. But I when i do a project with qumbiaprojectwizard doesn’t appears to me the cumbia-Qtcontrols graphical elements when i use qtdesigner.
What I have:

What should be:

And also when i do a project with qumbiaprojectwizard and afterwards I use cuuimake it appears to me this:

hello Diego.
You may be missing QT_PLUGIN_PATH with the additional path to cumbia libs designer plugins.
In my case, being libs installed under /usr/local/cumbia-libs:

export QT_PLUGIN_PATH=/usr/local/cumbia-libs/lib/qumbia-plugins

The messages in red in the second screenshot are just warnings because you are not using yet the variables addressed therein.

Hello Giacomos

I put QT_PLUGIN_PATH(in my case /usr/local/lib/qumbia-plugins) and I have reinstalled the modules of qtcontrols, tango-controls, plugins and qumbiaprojectwizard (also in /usr/local). And it still doesn’t appear to me the qtcontrols elements

what is inside

/usr/local/cumbia-libs/lib/qumbia-plugins/designer/ ?

Can you go to Qt Designer help->about plugins and see if it points to the cause?

Hola Diego,
it seems that the Qt designer does not actually see the cumbia designer plugin .so
Could You please double check

echo $QT_PLUGIN_PATH ?

Because if Qt designer finds the plugin, it must be shown in the about->plugins dialog, either loaded or failed with an error message.

You can also try locate where the loaded plugins (f.e. libqwt) are and see if something is wrong with your QT_PLUGIN_PATH as far as cumbia plugin is concerned.

I think this issue should be easy to debug

Let me know

Suerte y Saludos

Sorry, I did the screenshot without the QT_PLUGIN_PATH, the message that is in Qt Designer help->about plugins is “Cannot load library /usr/local/lib/qumbia-plugins/designer/libcumbia-qtcontrols-pool-plugin.so: (libqwt.so.6: cannot open shared object file: File or directory does not exist)”

Hola Diego.
OK, you need to check if your LD_LIBRARY_PATH contains the qwt/installation/path/lib

Giacomo.

Hi Giacomo,

when you mean “qwt/installation/path/lib” you mean "/usr/local/qwt-6.1.5/lib/? Because if so, it still doesn’t work for me.

Hello Diego, looking at the message

"libqwt.so.6 cannot open… "

means that such library cannot be found. Probably you need the

LD_LIBRARY_PATH

to include qwt lib directory.

Please double check

Saludos

Hi Giacomo
Thanks, finally, I already have the elements of qtcontrols in designer.
Just one last thing, to connect a widget with tango, the format that i have to use for an attribute or command, what is it?
I have this error. (for an attribute i have a diferent error)

Is it with this format? (I tried it without the instace too)
For Attribute:
tango/device/server/attribute------tango/(domain/family/member)/(servername/instance)/(type)?/(attributeName)
For Command:
tango/device/server->command-------tango/(domain/family/member)/(servername/instance)->(commandName)

Diego

Hi Diego,

I don’t know Cumbia but since I’m quite familiar with the way things are usually named in Tango, I guess you could try what I suggest below.
The way I interpret the message from the tooltip in your screenshot is that “tango/device/server” in the tooltip given examples is just an example of a Tango device name.
So in your use case, I suppose you should just use “exSki/lift/0->Reset” if you want to execute the Reset command on exSki/lift/0 device.

Hoping this helps.
Reynald

Exactly, Reynald.

Some examples follow

read the attribute double_scalar from device sys/tg_test/1:

sys/tg_test/1/double_scalar

Impart a command, for example through a QuButton:

sys/tg_test/1->SwitchStates (button target)

with an argument

sys/tg_test/1->DevDouble(1.0) (button target)

with an argument taken from another widget in the application, with object name doubleSpinBox:

sys/tg_test/1->DevDouble(&ui->doubleSpinBox) (button target)

object QLineEdit, name lineEdit:

sys/tg_test/1->DevDouble(&ui->lineEdit) (button target)

Write double_scalar from doubleSpinBox:
sys/tg_test/1/double_scalar(&ui->doubleSpinBox) (button target)
Then you can read also device, attribute, class properties. To learn the syntax to use on a Qt Application, try
executing

cumbia read

from the command line, and read thoroughly the help page.

Kindest regards

Ok, now I understand it, thanks.

Kind regards,

Diego

Great.
Please provide feedback and impressions.

Atentamente.