Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
858 Topics 3.4k Posts
  • 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

  • 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
    3k 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.

  • 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
    2k 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.

    :)

  • [Solved] QT: editable tableview header issue.

    5
    0 Votes
    5 Posts
    5k Views
    R

    [quote]That's why editing headers is difficult :-)[/quote]

    Oey, In the back of my mind I was thinking the same thing.

    Aside from a custom widget (have yet to figure out painting),
    editing works if passing header information into an external dialog.

    Not exactly what I intended for the user, but it works :)

    Thank you for your kind help.

  • Install Qt Jambi using PPA

    5
    0 Votes
    5 Posts
    5k Views
    A

    The 64bit packages are ready for testing.
    "https://launchpad.net/~qtjambi-community/+archive/libqtjambi/+packages":https://launchpad.net/~qtjambi-community/+archive/libqtjambi/+packages

  • 0 Votes
    2 Posts
    3k Views
    D

    Great work! I'm looking forward for the final release!

    However, as the project is sponsored by Nokia, to provide Python support for mobile phones (I read it somewhere on the project's website), will there be any repercussion on the project? (Reference to http://blog.qt.nokia.com/2011/02/14/update-on-qt/, for example.) I didn't read anything about it...

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