Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
860 Topics 3.4k Posts
  • [SOLVED ]All focus, all the time

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    6 Posts
    3k Views
    U

    Hi all,
    I think I did find a partial solution.
    the nokia N900 has QtMobility 1.0.2 officially installed with the PR1.3 update. Through the pachages libqtm-11-dev or libqtm-12-dev is it possible to install the QtMobility 1.1 or 1.2. These libraries are installed in parallel to the official one, that's why the official python-qtmobility package is linked to the 1.0.2 version.
    In maemo extras-devel I found another package:
    @python-qtmobility11@
    these are the python libraries linked to the non official QtMobility 1.1 and as well can be installed in parallel to the official one. Infact the have been saved in:
    @/opt/qtm11/lib/python2.5/site-packages/QtMobility/@
    I did create a symbolic link to these libraries in the officialfolder in which python is looking for:

    @cd /usr/lib/python2.5/site-packages/
    ln -s /opt/qtm11/lib/python2.5/site-packages/QtMobility/ ./QtMobility11@
    In these way I can access the QtMObility 1.1 from python:
    @[sbox-FREMANTLE_X86: ~] > run-standalone.sh python2.5
    Python 2.5.4 (r254:67916, May 17 2010, 21:11:14)
    [GCC 4.2.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.

    from QtMobility11 import Location
    print dir (Location)
    ['QGeoAddress', 'QGeoAreaMonitor', 'QGeoBoundingArea', 'QGeoBoundingBox',
    'QGeoBoundingCircle', 'QGeoCoordinate', 'QGeoManeuver', 'QGeoMapCircleObject',
    'QGeoMapData', 'QGeoMapGroupObject', 'QGeoMapObject', 'QGeoMapObjectInfo',
    [...]
    'QLandmarkRemoveRequest', 'QLandmarkSaveRequest', 'QLandmarkSortOrder',
    'QLandmarkUnionFilter', 'QNmeaPositionInfoSource', '_Cpp_Api', 'doc', 'file', 'name']@

    As you can see there is now access to all the Location classes from QtMobility 1.1
    Hope this can help in case you encounter similar trouble, and hope somewhen also a package for the 1.2 version appears... unfortunately I'm not able to do it myself :)

  • Hybrid Applications with PySide

    6
    0 Votes
    6 Posts
    6k Views
    X

    I was reading about PySide and PyQt... but this is new for me! thanks! :P

  • 0 Votes
    3 Posts
    5k Views
    U

    Hi Renato!
    Thanks for the tip! It did solve the issue with the RuntimeError, but unfortunately I still don't see the button in the QML scene :(
    If I discover how to make it work I will post it...
    ciao
    nic

  • PySide and QAxWidget

    2
    0 Votes
    2 Posts
    3k Views
    R

    Unfortuatly the pyside team does not have any plans for make bindigs avaliable for this widget. But this bindings can be provide for someone from the community.

  • Pyside-rcc Generates Invalid Python

    5
    0 Votes
    5 Posts
    4k Views
    M

    Thanks, Renato! The previous version works.

    I'm really enjoying experimenting with PySide by the way. I've been waiting a long time for this and it is exceeding my expectations. Awesome work, guys!

    Mark.

  • [Moved] Qt Xembed on Java ?

    4
    0 Votes
    4 Posts
    2k Views
    T

    this is wrong place to post

  • 0 Votes
    8 Posts
    4k Views
    T

    [quote author="rockdude" date="1308655120"]okie :) I'll update here if i get over the issue ! May be will be usefull for someone . Thanks for the reply[/quote]

    have you tried SVGT icon

  • To Subclass NSApplication in QApplication.

    7
    0 Votes
    7 Posts
    6k Views
    N

    Ok, not an issue, i will try to do something else.

  • Printer - One Record per page.

    8
    0 Votes
    8 Posts
    4k Views
    L

    Great! Could you please add [Solved] in front of the title? (Edit the first post)

  • Simple PySide/PyQt QPropertyAnimation

    2
    0 Votes
    2 Posts
    8k Views
    M

    Hi

    This answer may be a little help but I hope it helps someone nevertheless.

    In ImageWidget.loadImage, you create anim as a local variable. That means it's going to be garbage collected at the end of th call : as soon as the call is over, the animation is deleted, and won't have any effect.

    There is two ways to solve the problem :

    Define anim as an object attribute (@self.anim = …@) Set anim as a child of the current object, so that it keeps a reference to anim and prevent the garbage collection (@anim = QtCore.QPropertyAnimation(pixmap, "opacity", self)@)
  • 0 Votes
    2 Posts
    3k Views
    P

    OK, answer by myself:
    @
    def prepare(self, metaData):
    l("get url: " + metaData.url().toString())
    mfn, dfn = self.get_filename(metaData.url())
    l("open file " + dfn)
    df = QFile(dfn)
    df.open(QFile.ReadWrite)
    l("file opened " + dfn)
    self.save_df = df
    return df
    @

  • 0 Votes
    9 Posts
    8k Views
    S

    There is also Qt Jambi, if someone likes Java ;)

  • Where to find Qt Jambi tutorials

    4
    0 Votes
    4 Posts
    6k Views
    L

    For anyone looking for QtJambi Tutorials , i suggest this tutorial from zetcode :

    "QtJambi Basics":http://www.zetcode.com/tutorials/qtjambitutorial/

    If you know any other links , post it

  • Hosting QT widgets in .NET and vice versa

    2
    0 Votes
    2 Posts
    3k Views
    K

    This forum is referred to as Qt. Most users insist that QT refers to QuickTime.

  • How to save a QGraphicsScene to an SVG file?

    12
    0 Votes
    12 Posts
    20k Views
    J

    Reported as "bug #19563":http://bugreports.qt.nokia.com/browse/QTBUG-19563.

  • 0 Votes
    8 Posts
    6k Views
    G

    Please use the edit link below your avatar image/username right to a comment to edit a comment instead of adding a new one with the correct link.

  • Will PySide build with VS2005 x64?

    8
    0 Votes
    8 Posts
    4k Views
    J

    Hi,
    The problem was this line in dummgentest-project.txt.in
    @output-directory = /tmp/output@
    on windows this is likely going to fail. How about ./tmp-output?

    I had to use a debugger to trace to see what files generatorrunner was opening.

    The tests all pass on Visual Studio Pro 2005 x64

    Thanks for the help,

    James
  • 0 Votes
    4 Posts
    8k Views
    P

    OK, another sorry, I found my error. If I put the format() after the tr() everything works fine:

    @self.labelHalloWelt = QtGui.QLabel(self.tr("Hello {0}!").format("World"))@

  • PySide: QtSingleApplication?

    5
    0 Votes
    5 Posts
    6k Views
    T

    I shared this recipe on my blog, with a QSingleApplication class for PySide that allows you to be sure your program will be started only once.
    In addition to start the application only once, we can send the arguments of the later calls of your program to the first (and only remaining) instance.

    Link: http://www.dallagnese.fr/en/computers-it/recette-python-qt4-qsingleapplication-pyside/