QWebKit: SVG support incomplete



  • SVG support is partially there in QWebKit but seems to be not quite complete. You can modify styles but not the DOM itself. Completion of the ability to modify text would open up a whole realm of data display and control systems applications for industry and commerce.

    For example, you can modify styles/colors programmatically with QWebElement:

    element.setStyleProperty("fill","#336699");

    ... this works great.

    But setting text fails as it requires some variant of setInnerXML(). This should work but doesn't:

    tspan=element.firstChild();
    tspan.setPlainText(QString("Hello world"));

    Note: <text> has a <tspan> child which has the text

    I think the problem is incomplete SVG support in qwebelement.cpp

    Before I raise a bug... does this sound accurate?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.