Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
853 Topics 3.3k Posts
  • Writing script for webcam

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

    Solved it. I needed to call QGLBuffer.release() before calls to QPainter.

  • Demonstrate picking edges of QGraphicItems

    3
    0 Votes
    3 Posts
    2k Views
    G

    We usually move all non C++ code to the Language Bindings subforum.

  • 0 Votes
    2 Posts
    2k Views
    G

    If you use QtCreator, call new project, select a dll project and that's it, there is a dll.
    Using a dll is a very basic thing in C/C++ and not Qt related, and it depends on how the dll tio use is created.

    does it have C exported functions? then you could load it with QLibrary and call resolve to get the function pointers Or you include the header file and linky dynamically to it or it has exported classes, then you MUST link dynamically to it.
  • Any step process for Qt to interact with msmq?

    4
    0 Votes
    4 Posts
    4k Views
    G

    Ok, so you have two buinaries, one in Qt, one in MFC.
    You want to send the MFC binary (window) messages, right?
    Use WinAPI SendMessage.
    To get messages back, you need a top level widgetr (which also is a real window) and overwrite winEvent.

  • 0 Votes
    3 Posts
    2k Views
    M

    I solved it myself anyways thanks for the reply ,

  • Why is QPoint.x() not a property?

    8
    0 Votes
    8 Posts
    6k Views
    B

    I think my earlier link to wiki discussed how properties can be simulated in C++.

    I'm still wondering whether PySide has not made a design error in their QPoint implementation. Its more Pythonic to make data attributes public (the philosophy is, let the programmer do what they want, even if they get in trouble) without hiding them behind getter/setters. If the developers of PySide later need to intercede, they can use properties to make it still look like a data attribute, but use their defined getter/setter doing whatever intercession they need. But its possible that what the PySide developers can do is constrained.

    Re: "Qt’s design principles to (NOT) expose otherwise private implementation details as public attributes". In C++? Do those principles necessarily carry over to PySide?

    After all, a point IS data, two numbers usually called x and y. In other words, that seems to be a rather fundamental "property" of a point. Why obscure that with getter and setters?

    I don't mean to complain too much, I really appreciate the beauty of Qt and PySide.

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • PyQT Update QLabel Threading/Signals Issue

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Java compiler for Qt4 on visual studio 2005

    2
    0 Votes
    2 Posts
    2k Views
    T

    Just putting Qt4 into the headline does not make this a Qt question. Just use google to find a download link for Java!

  • 0 Votes
    2 Posts
    3k Views
    M

    sorry, my mistake i had to pass string type argument instead of int for 'inputVal' in
    return QtGui.QValidator.Invalid,inputVal,pos

  • Phonon + QBuffer

    2
    0 Votes
    2 Posts
    3k Views
    L

    sorry...
    In a Video c'tor :
    @
    Video::Video(QBuffer *source,QWidget *parent)
    {
    m_source = new Phonon::MediaSource(source);
    m_media = new Phonon::MediaObject(ui.label);
    m_video = new Phonon::VideoWidget(ui.label);
    m_video->setGeometry(0,0,ui.label->width(),ui.label->height());
    Phonon::createPath(m_media,m_video);
    m_media->setCurrentSource(*m_source);
    }
    @

    and in Video:play
    @
    m_media->play();
    @

  • 0 Votes
    3 Posts
    4k Views
    G

    This is a duplicate of "this thread":http://developer.qt.nokia.com/forums/viewthread/9899/. Closed.

  • 0 Votes
    6 Posts
    8k Views
    M

    Hi,
    Here is the info: PySide:

    created a signal :
    signalTextChanged=QtCore.Signal(list,str)

    emitting the signal :
    self.emit(QtCore.SIGNAL('signalTextChanged(list,str)'),names,prefix)

    Error:
    TypeError: Unknown type used to emit a signal: list

  • [Moved] How to use QProcess in a loop?

    10
    0 Votes
    10 Posts
    6k Views
    G

    I moved this thread to the mentioned forum. You find the link at the top of the page in the bread crumbs just above the thread title.

  • Qt + OCaml

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • How to set the depth of QWidget???

    2
    0 Votes
    2 Posts
    2k Views
    G

    Hi there

    I may be misunderstanding your question, but you mention that your button is the same size as the window? That makes me wonder if you haven't perhaps forgotten to set layouts on your widget:

    "Layout Management":http://developer.qt.nokia.com/doc/qt-4.7/layout.html

    It could be beneficial to you if you posted some code here as it will help to understand your question :)

  • 0 Votes
    5 Posts
    6k Views
    U

    OK, will do, thanks.

    By the way, after some probing I found my libxml2.framework under /Library/Frameworks seems to be corrupted for some reason. This explains why the linker can't link it even though cmake "recognizes" the framework.

    Thanks for all the info.