qt-jambi

Qt Jambi: Accessing the content of QNetworkReply

陌路散爱 提交于 2019-12-23 02:56:06
问题 I'm having trouble accessing the content of QNetworkReply objects. Content appears to be empty or zero. According to the docs (translating from c++ to java) I think I've got this set up correctly, but to no avail. Additionally an "Unknown error" is being reported. Any ideas much appreciated. Code: public class Test extends QObject { private QWebPage page; public Test() { page = new QWebPage(); QNetworkAccessManager nac = new QNetworkAccessManager(); nac.finished.connect(this, "requestFinished

NullPointerException from java.lang.J9VMInternals

和自甴很熟 提交于 2019-12-11 19:55:41
问题 I'm trying to run a slightly modified version of this Qt Jambi Hello World example but I encounter a NullPointerException tracable to my very first line of code. The only way this would be possible would seem to be if QApplication is null, but it's on my build path, and my code compiles. At first I wondered if the null pointer was my lack of a constructor, but adding one still results in the error. Now I'm wondering if it's because there is probably some JNI (Java Native Access) going on

qtjambi - QApplication.initialize outside of main method

青春壹個敷衍的年華 提交于 2019-12-08 06:01:17
问题 I want to use qt jambi to make screenshots. I use the integrated webkit browser and it works like a charm. The problem is: How can I initialize QApplication.initialize(args); outside of the main method. Since I want to make screenshots out of my java web application without calling an external program I need to initialize QApplication outside of main. import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import com.trolltech.qt.core.QObject; import com

How to install Qt-Jambi in Eclipse in windows 7?

无人久伴 提交于 2019-12-07 07:23:33
问题 I am new in programming and I want to install Qt-Jambi in Eclipse in windows 7. Can you explain it to me with a step-be-step procedure? I have searched but I didn't find a easy explaining procedure or tutorial. Thanks in advance 回答1: As a QtJambi maintainer, I provide this answer so as to help close off this issue for someone else searching. There is no official way to install QtJambi system-wide, which might be the reason this answer has remained unanswered for so long. Since there is no

Qt Jambi: Accessing the content of QNetworkReply

China☆狼群 提交于 2019-12-06 16:01:46
I'm having trouble accessing the content of QNetworkReply objects. Content appears to be empty or zero. According to the docs (translating from c++ to java) I think I've got this set up correctly, but to no avail. Additionally an "Unknown error" is being reported. Any ideas much appreciated. Code: public class Test extends QObject { private QWebPage page; public Test() { page = new QWebPage(); QNetworkAccessManager nac = new QNetworkAccessManager(); nac.finished.connect(this, "requestFinished(QNetworkReply)"); page.setNetworkAccessManager(nac); page.loadProgress.connect(this, "loadProgress(int

Qt Jambi eclipse integration error on Windows 64 bits

南楼画角 提交于 2019-12-06 06:23:22
I can't seem to figure out how to properly integrate Qt Jambi to eclipse. Here is what I did: I installed the version of the toolkit for Windows 64 bits; I copied the required integration plugins in {ECLIPSE_PATH}\plugins ; I launched eclipse and set Qt Jambi's installation directory in the preferences; Then, when I tried to apply the new preferences, I got an error that said something about a module that couldn't be launched ( {QT_JAMBI_PATH}\bin\qtdesigner.dll ); After restarting eclipse, I can't find any of Qt Jambi's integration views. I can switch to Qt Designer UI perspective, but then,

Using Maven with QT Jambi

a 夏天 提交于 2019-12-05 07:25:29
问题 I'm just getting started with QT Jambi and I have some problems getting the Maven-plugin to work. I get the following error message: [ERROR] Failed to execute goal net.sf.qtjambi:qtjambi-maven-plugin:4.6.3.1:generate (default-cli) on project DegooClientGUI: Execution default-cli of goal net.sf.qtjambi:qtjambi-maven-plugin:4.6.3.1:generate failed: Plugin net.sf.qtjambi:qtjambi-maven-plugin:4.6.3.1 or one of its dependencies could not be resolved: Failed to collect dependencies for net.sf

Do you use Qt and why do you use it? [closed]

折月煮酒 提交于 2019-12-03 18:34:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Pros. and cons? how long do you use it? What about jambi? 回答1: I've used Qt on a couple of projects I did in c++ on several platforms

Trouble installing QT Jambi on a Windows 64 bit system

ε祈祈猫儿з 提交于 2019-12-01 18:21:29
问题 I've been trying to use QT Jambi, but I couldn't manage to install it yet. First of all, this is my system: Windows 7 Home Premium 64 Bit Java 6 32 bit (I often use JDownloader which is not compatible with the 64 bit version of Java) MinGW C++ compiler that comes with Code::Blocks (which sets all required environmental variables during setup) I also have CygWin installed, but I don't understand why it gets mentioned during the error that I get... My first idea was to try the 32 bit version

Trouble installing QT Jambi on a Windows 64 bit system

浪子不回头ぞ 提交于 2019-12-01 18:20:43
I've been trying to use QT Jambi, but I couldn't manage to install it yet. First of all, this is my system: Windows 7 Home Premium 64 Bit Java 6 32 bit (I often use JDownloader which is not compatible with the 64 bit version of Java) MinGW C++ compiler that comes with Code::Blocks (which sets all required environmental variables during setup) I also have CygWin installed, but I don't understand why it gets mentioned during the error that I get... My first idea was to try the 32 bit version since I have 32-bit Java, so I linked the libraries in Eclipse, tried the classical beginner program