Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
862 Topics 3.4k Posts
QtWS25 Last Chance
  • PySide: translate() String with variable arguments

    4
    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/
  • [Moved] Invalid Signal signature: errorSignal(long)

    15
    0 Votes
    15 Posts
    7k 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
    4k 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
    2k 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
  • ECMAScript documentation for Qt Quick, QtScript and beyond

    3
    0 Votes
    3 Posts
    3k Views
    W
    thanks a lot for this, nice posting, i think you should carry on.
  • QApp macro returns QtCoreApplication

    4
    0 Votes
    4 Posts
    5k Views
    B
    looks promising, thanks for the heads up.
  • "Setting up PySide" wiki

    4
    0 Votes
    4 Posts
    4k Views
    S
    Sorry but I have edited your edit a little :) I changed "Windows (32bits):" to "Windows:" ... it is ok Windows to be 64 bit (mine is).
  • 0 Votes
    2 Posts
    4k Views
    S
    The (partial) solution was this: @self.group.setHandlesChildEvents(False) @ This ensures that individual items handle their own events, it seems that before the group was capturing them. I still have a problem in that my GraphicsView overrides the mouseMoveEvent, and when enabled, no events get propagated to scene items.
  • Provide QObject slots and signals features to another class?

    2
    0 Votes
    2 Posts
    7k Views
    T
    Woops, I found the reason by myself... @class myClass(anotherLib.originalClass, QtCore.QObject): def init(self,username,password): QtCore.QObject.init(self)@ Adding the QObject parent class and calling it during the init
  • Find Qt Window_hWnd in third party software

    18
    0 Votes
    18 Posts
    11k Views
    A
    [quote author="pmcfrack" date="1300306178"]I know this is a rather old post, however, this is the exact problem I am trying to work around. Here is a link to my question: http://developer.qt.nokia.com/forums/viewthread/4402/#26159 Does anyone have a work around for this? Thanks![/quote] Perhaps you should start responding in that thread then again? It is not like you did not get any reactions there...
  • How to import Qt Labs in Eclipse?

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Qt application in a browser && Qt-Jambi

    5
    0 Votes
    5 Posts
    5k Views
    S
    This QtWui looks like stuff you build on server and then you use it with normal browser? I don’t really get the benefit of this framework... Or is it something like Rails? Its website doesn’t really tell. OTOH Jambi is Qt bindings for Java. But because it is Java, it should be possible to use Jambi in applets and JNLP stuff. If you are just wanting to write something for web server, you’re most likely better off with Qt/cpp, since you already know it.
  • QPainter: Assemble parts of a widget.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Pyside 1.0.0

    2
    0 Votes
    2 Posts
    2k Views
    R
    As far as I know, pyside only work with python 2.* versions *Could be mistaken. :)