Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
850 Topics 3.3k Posts
  • 0 Votes
    7 Posts
    4k Views
    ?

    @the_ Thank you so much for your help ^__^

  • 0 Votes
    2 Posts
    645 Views
    korut94K

    I solved the problem!
    Just puts the shared library into a directory named "script", inside the directory where the application binary is placed, and it's done.

    Sorry for the trivial issue :(.

  • PyQt4 and scip for python on Mac OS Sierra

    Moved Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    SGaistS

    The module name is PyQt4 case sensitive.

  • Using JOGL with QtJambi

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    S

    Thanks for the information.
    I tested on a Windows 7 virtual machine and it works. So I suppose you are right about a compatibility problem with Sierra.
    I'll contact the current dev team of QtJambi.

  • Where can I get sample qtjambi-deployment.xml?

    Moved
    3
    0 Votes
    3 Posts
    2k Views
    J

    I still got error. I tried to run this example: https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-hellowebkit-code.html

    I put your file to root folder of project (same where I have pom.xml and src directory.) Is this right place? Or what would you do with the following error?

    /usr/lib/jvm/java-8-oracle/bin/java -Djava.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/rain/idea-IU/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/rain/jthesis/target/classes:/home/rain/jthesis/qtjambi-4.8.7.jar:/home/rain/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/2.7.0/jackson-dataformat-csv-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.0/jackson-core-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.0/jackson-databind-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar:/home/rain/.m2/repository/org/projectlombok/lombok/1.16.6/lombok-1.16.6.jar:/home/rain/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-2.12.2.jar:/home/rain/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/rain/idea-IU/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain HelloWebKit java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55) at com.trolltech.qt.internal.QtJambiObject.<clinit>(QtJambiObject.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.core.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.core.QObject.<clinit>(QObject.java:13) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more java.lang.RuntimeException: Loading library failed, progress so far: No 'qtjambi-deployment.xml' found in classpath, loading libraries via 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' Loading library: 'libQtCore.so.4'... - using 'java.library.path' at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:615) at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:455) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:346) at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:342) at com.trolltech.qt.gui.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:8) at com.trolltech.qt.gui.QWidget.<clinit>(QWidget.java:18) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.RuntimeException: Library 'libQtCore.so.4' was not found in 'java.library.path=/home/rain/jthesis/org.eclipse.swt-3.3.2.jar' at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:673) at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:610) ... 8 more 64 /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/rain/jthesis/target/classes:/home/rain/jthesis/qtjambi-4.8.7.jar:/home/rain/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/2.7.0/jackson-dataformat-csv-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.0/jackson-core-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.0/jackson-databind-2.7.0.jar:/home/rain/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar:/home/rain/.m2/repository/org/projectlombok/lombok/1.16.6/lombok-1.16.6.jar:/home/rain/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-2.12.2.jar:/home/rain/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/rain/idea-IU/lib/idea_rt.jar Process finished with exit code 0
  • Question about QPlayList

    Moved Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    understatementOfTheYearU

    Just an update to the working state of this code. Yes it does loop as it should in both mac and windows, however, when it loops on the mac, the video scales up for some bizarre reason. I have no clue what would make it do that. Any thoughts?

  • 0 Votes
    2 Posts
    581 Views
    SGaistS

    Hi,

    You should show the code you are using as well as the backtrace of the crash otherwise it's pretty much Crystal Ball debugging.

  • Creating a Video Widget with PyQt5

    Moved Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    _antipattern__

    QWidget's documentation claims that the QWidget::paintEngine implementation may not always return a valid pointer, which is what I think causes your problem.
    One solution might be to override it and provide your own QPaintDevice. On StackOverflow I found a workaround based on QtQuick instead of QtWidget, using a QQuickPaintedItem that you can use inside your QtQuick scenegraph.

  • QWebView and CSS animations

    Unsolved
    2
    0 Votes
    2 Posts
    868 Views
    _antipattern__

    Hi,

    it looks like QtWebKit was superceded by QtWebEngine. Clicking together a quick sample shows the animations working for me without any more work required:

    import QtQuick 2.0 import QtQuick.Window 2.0 import QtWebEngine 1.0 Window { width: 1024 height: 768 WebEngineView { anchors.fill: parent url: "http://mapshakers.com/projects/leaflet-pulse-icon/" } }

    Best

  • 0 Votes
    1 Posts
    457 Views
    No one has replied
  • Multi Process in a Widget

    Unsolved
    12
    0 Votes
    12 Posts
    4k Views
    mrjjM

    @LeeDaShen
    In which way, login ?
    The browser dont have any login . Do you mean the user?

  • 0 Votes
    1 Posts
    639 Views
    No one has replied
  • QTJambi: QAbstractItemModel.SetData is not called

    Moved Solved
    2
    0 Votes
    2 Posts
    1k Views
    P

    Dummy me...the setData signature was wrong...it has to be:

    public final boolean setData(QModelIndex index, Object value, int role)

  • QProcess event queue

    Moved Unsolved
    10
    0 Votes
    10 Posts
    4k Views
    B

    @SGaist said in QProcess event queue:

    Hi,

    Unless you put that in a loop, readLine will only read one line each time. One thing you can do is split the content of trace_output on the carriage return and parse each element after that.

    Sry didn't get notified about your reply. I have managed to solve this using subprocess module on a different thread. Would like to see it working with QProcess too though. Did you find any bug on my code?

  • Is PySide2 stable enough?

    Moved Solved
    2
    0 Votes
    2 Posts
    1k Views
    tekojoT

    Hi @Exotic_Devel
    The best place to follow on PySide2 seems to be https://wiki.qt.io/PySide2
    It has links to all the relevant locations for more info.

    Seems like it still requires manual work to build (and Qt 5.6?).
    But looking at the speed of development it is close to being a good option.

  • Python 3.5 + QT designer+ PyQT4

    Unsolved
    1
    0 Votes
    1 Posts
    732 Views
    No one has replied
  • C++ to QML signal issue

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    p3c0P

    @Hoyt You already have that signal in your IntValue class. So in case you are trying to access this signal from other C++ class you have the instantiated object here:

    IntValue rotationAngle; engine.rootContext()->setContextProperty("rotationAngle", &rotationAngle);

    Use this object and connect to its SIGNAL intValueChanged.

  • PyQt5 -- loading serialized videos for playback

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    SGaistS

    AFAIK, there's no support for "in-memory files" like that. Remember that QtMultimedia uses the platform's multimedia framework which don't handle Qt types. If you take for example the handling of Qt's resource system when dealing with multimedia files, a temporary file is created so that the multimedia framework can access it.

    If you want something lower level to avoid the temporary file, you'll have to implement it yourself.

  • 0 Votes
    6 Posts
    2k Views
    SGaistS

    Hi,

    This stackoverflow answer might give you some clues.

  • Public Functions qt++ to qml

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    N

    @Dante-Leoncini said in Public Functions qt++ to qml:

    but now comes another error: undefined reference to `vtable for MyFunctionsProvider'

    Hi,
    you need to run qmake.