Java_WebKit

一、git

http://tieba.baidu.com/p/2807579276web

 

下载地址:测试

http://qtjambi.org/downloadsui

https://qt.gitorious.org/qt-jambi/qtjambi-community?p=qt-jambi:qtjambi-community.git;a=shortlog;h=refs/heads/masterspa

 

二、code

2.一、支持的版本范围,以及还没有支持Qt5 及注意点:blog

http://wiki.qt.io/Qt_Jambiget

 

三、如何编译qtjambi:qt

http://qtjambi.org/doc/buildingit

 

四、ZC 个人测试代码:

package z;

import com.trolltech.qt.core.QObject;
//import com.trolltech.qt.core.QUrl;
import com.trolltech.qt.gui.QApplication;
import com.trolltech.qt.webkit.QWebView;


public class Browser extends QObject
{
    public static void main(String args[])
    {
        QApplication.initialize(args);
        QWebView view = new QWebView();
        view.setGeometry(50, 50, 800, 600);
        view.setHtml("<button onclick=\"alert('哈喽沃德');\" style=\"width:100px; height:100px; border-radius:100px; border:1px solid #ccc; background:#f3f3f3; font-size:12px; color:#000; cursor:pointer;\">我是一个按钮</button>");
        //view.load(new QUrl("http://www.baidu.com")); 
        view.show();
        QApplication.execStatic();//.exec();
        QApplication.quit();
    }
}

 

五、

相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息