Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
852 Topics 3.3k Posts

QtWS: Early Bird Tickets Available!

  • 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/

  • 0 Votes
    15 Posts
    6k Views
    T

    Well the main code of the mock up example is there:
    http://pastebin.com/a2Z2tx02

    The main class it is using is there:
    http://pastebin.com/u46TXF0z

    However, the error is raised almost never...
    I even could not get the error after trying the mock up example more than 50 times.
    Maybe I already fixed the error.
    It used to appear sometimes only.

    I'm not sure this mock-up is very meaningful, but maybe some people might find some huge mistakes in the main class.
    This is very crappy coding by the way, this is my first PySide program and it was rapidly coded...

  • Qt and c#

    2
    0 Votes
    2 Posts
    4k Views
    L

    What are you trying to achieve?

    You may find "Qyoto":http://techbase.kde.org/Development/Languages/Qyoto useful because it makes possible to develop Qt and KDE applications using C#.

    Cheers,
    Leon

  • 0 Votes
    3 Posts
    5k Views
    T

    Oh yeah I didn't notice I have to "accept" the drag first, thanks ;)

    If it helps anyone who was also wondering how to do a drag an drop in PySide, here is my working code:
    @ @Slot(QDropEvent)
    def dropEvent(self, event):
    self.loadInputFile(self.dropFile)
    @Slot(QDragEnterEvent)
    def dragEnterEvent(self, event):
    m = event.mimeData()
    if m.hasUrls():
    self.dropFile = m.urls()[0].toLocalFile()
    event.acceptProposedAction()@

  • PyQt: the old style signals are not working

    3
    0 Votes
    3 Posts
    3k Views
    X

    Thanks its working now :)

  • How to merge cocoa into Qt?

    6
    0 Votes
    6 Posts
    8k Views
    G

    I never worked with native Cocoa/XIB files, so I cannot comment on this one. I would dig deeper into the alien widgets topic, though. Maybe "QMacCocoaViewContainer":http://doc.qt.nokia.com/latest/qmaccocoaviewcontainer.html can be of help for you here. It contains an example for including a NSSearchField into a Qt widget.

  • [Moved] Qt Webkit using PySide (Windows 7)

    5
    0 Votes
    5 Posts
    3k Views
    C

    Hi Mifik! Congratulations - did not work for me. When installing one of the other packages, I receive a message "Python version 2.5 required". So you also installed Python 2.5?

    I downloaded and installed Python 2.7.1 from http://python.org/download/. Which version did you use?

  • QtColorTriangle in pyside.

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Pyside symbol problem

    3
    0 Votes
    3 Posts
    5k Views
    V

    I think this is solution of your problem:
    http://code.google.com/p/freebsd-pyside/wiki/Functionality#Troubleshooting

    bq. problem
    from PySide.QtGui import *
    ImportError: /usr/local/lib/python2.7/site-packages/PySide/QtGui.so: Undefined symbol "_ZN9QGtkStyle11qt_metacastEPKc"
    solution
    The current solution is to rebuild py-gui after changing your /etc/make.conf to include:
    QT4_OPTIONS += QGTKSTYLE