I can't seem to get an icon from a theme, possibly because I am not using it the right way. I have tried various ways, such as:
(qfun "QIcon" "fromTheme(QString)" "icon-name")
(let ((q-icon (qnew "QIcon")))
(qfun q-icon "fromTheme(QString)" "icon-name"))
This results in:
[EQL:err] QINVOKE-METHOD #<QIcon 0x4e533c0> NIL "fromTheme(QString)" ("icon-name")
Detected access to an invalid or protected memory address.
[Condition of type EXT:SEGMENTATION-VIOLATION]
The C++ code for what I want would be:
QIcon::fromTheme("icon-name");
What is the correct way to do this, and does it work?