I am looking for the most simple and straightforward example.
For my part;
.h
public:
KTerminalDisplay(QQuickItem *parent = 0);
~KTerminalDisplay();
Q_INVOKABLE void setFontStyle(QString & s);
.cpp
void KTerminalDisplay::setFontStyle(QString & s){
m_fontStyle = QString(s);
}
This works fine thus far. No issues. The question is; how do I use this function in a QML file?