c++ - How to apply css in internet explorer COM object? -


i write in qt shouldn't matter since want use com funcs how load ie.

qaxwidget* axiebrowser= new qaxwidget(ui->centralwidget); axiebrowser->setcontrol(qstring::fromutf8("{8856f961-340a-11d0-a96b-00c04fd705a2}")); axiebrowser->dynamiccall("navigate(const qstring&)", "www.google.com"); 

and want apply css pages open widget. example:

body {     margin:0;     overflow:hidden;     opacity: 0.4; } 

in qt if use qt webkit, can achieve using

ui->webview->page()->settings()->setuserstylesheeturl(mycss); 

how can using ie com?

in qt managed following codes

idispatch* val = axiebrowser->property("document").value<idispatch*>(); qaxobject * obj = new qaxobject((iunknown*)val); if (obj) {     qaxobject * result = obj->querysubobject("createstylesheet(qstring, int)", "", 0);     result->setproperty("csstext", "body {  margin:0;   overflow:hidden;    opacity: 0.4;}"); } 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -