日志
在Qt中使WebKit打开的网页进入编辑状态
2011-06-12 12:43
2009-02-27 17:19 愚蠢啊,今天才发现,琢磨Qt文档中这句话的意思: In addition to providing pure rendering features, HTML documents can bemade fully editable to the user through the use of the contenteditableattribute on HTML elements. 它的意思是什么?以前一直在Qt提供的类里找所谓的contenteditable属性,。。。。。今天忽然发现,它是在HTML源代码中的HTML元素,也就是说将要显示的HTML代码的HTML元素加上contenteditable属性,那用QWebView打开的网页,就是可编辑的了。 测试了一下,在Firefox、Opera、Chrome下都支持HTML的contenteditable属性,但在IE下不支持这个属性。 |