内容简介:目前,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()
}
以上所述就是小编给大家介绍的《QtJambi大杂烩》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Hard Thing About Hard Things
Ben Horowitz / HarperBusiness / 2014-3-4 / USD 29.99
Ben Horowitz, cofounder of Andreessen Horowitz and one of Silicon Valley's most respected and experienced entrepreneurs, offers essential advice on building and running a startup—practical wisdom for ......一起来看看 《The Hard Thing About Hard Things》 这本书的介绍吧!