QtJambi大杂烩

栏目: Java · 发布时间: 7年前

内容简介:目前,Java对Qt的支持只有QtJambi,QtJambi只支持Qt4.8官方的Sourceforge上的Maven仓库挂了,mvnrepository上搜到的支持QtJambi的仓库只有build.gradle

目前,Java对Qt的支持只有QtJambi,QtJambi只支持Qt4.8

官方的Sourceforge上的Maven仓库挂了,mvnrepository上搜到的支持QtJambi的仓库只有 http://uqbar-wiki.org/mvn/releases/ ,而且版本略老(4.8.5),依赖的libpng15我的系统上没有(只有libpng16),因此,我把从官方下的jar包放到了自己的Maven仓库( https://raw.github.com/baijifeilong/repo/mvn )

build.gradle

dependencies {
    compile 'com.trolltech.qt:qtjambi:4.8.7'
    compile 'com.trolltech.qt:qtjambi-linux64-gcc:4.8.7'
}

repositories {
    maven {
        url 'https://raw.github.com/baijifeilong/repo/mvn'
    }
}

app.kt

package bj

import com.trolltech.qt.gui.QApplication

/**
 * Created by BaiJiFeiLong@gmail.com at 18-8-13 下午9:13
 */

fun main(args: Array<String>) {
    QApplication.initialize(args)
    QApplication.aboutQt()
    QApplication.execStatic()
}

文章首发: https://baijifeilong.github.io


以上所述就是小编给大家介绍的《QtJambi大杂烩》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Types and Programming Languages

Types and Programming Languages

Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00

A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具