Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
867 Topics 3.4k Posts
  • Does anybody have the experience about cross compiling Pyside ?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    R
    I use python's eval() function solved it ! thanks all your replies !
  • Free Python document styling/stylesheet classes for Qt QGraphicsView

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QtWebKit and QHttpThreadDelegate

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Solved] PyQt4 - Passing data between widget instances

    2
    0 Votes
    2 Posts
    7k Views
    P
    the solution is: @ def BtnClick(self): #on self.Btn Click create: '''Widget B''' inputDlg = WidgetB(self) inputDlg.show() if inputDlg.exec_(): self.editor.acceptUserInput(inputDlg.userInput())@ userInput being a getter in WidgetB acceptUserInput being a setter in WidgetA Other possible solution would be using global variable but you still need .exec_() to make it work.
  • How get handle of Qwidget Child with vb.net ?

    9
    0 Votes
    9 Posts
    6k Views
    G
    Hi, ther very first HIT from google: http://en.wikipedia.org/wiki/Microsoft_Active_Accessibility that describes what MS Accessibility is. I don't know what you want to do. I don't know why you want to do that. You can't send windows messages to Qt widgets. You wanted to access the widgets, that is possible via MSAA, the only way I know on windows (if you do not have Qt for that).
  • Beginner Question about QCalendarWidget

    2
    0 Votes
    2 Posts
    2k Views
    T
    https://qt-project.org/forums/viewthread/19738/ is a german thread from dino about this issue with a bit more feedback.
  • Pyside - Moving data between two list views

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Solved] Python/Pyqt - QtCore.Qt.RightButton not responding

    4
    0 Votes
    4 Posts
    7k Views
    N
    Thanks so much, jazzycamel! :) That worked great!!!
  • Put C++ class into QML window

    4
    0 Votes
    4 Posts
    3k Views
    S
    I try to achieve ability of dynamic qml object's creation from C++ code. I need create some objects from C++ code and then show them as part of main.qml I tried to replace QDeclarativeView on @ QDeclarativeEngine engine; QDeclarativeComponent component(&engine, QUrl::fromLocalFile("qml/PlanetWars/BaseObject.qml")); QObject *object = component.create();@ but observe only RuntimeError.
  • QtCore.QAbstractItemModel

    3
    0 Votes
    3 Posts
    2k Views
    D
    Hi! Can you post your index() method's realization, please? Right now I have issues with this. I try to pass COM object to createIndex() as ptr parameter, but Python interpreter just crashes. Here is my index() method: @ def index(self, row, column, parent=QtCore.QModelIndex()): if parent.isValid(): parent_item = parent.internalPointer() try: child = parent_item.ChildRows[row] except: return QtCore.QModelIndex() else: try: child = self.card.Sections(self.card.Type.AllSections. GetByAlias('Main').ID).Rows[row] except: return QtCore.QModelIndex() return self.createIndex(row, column, child)@ self.card - is the COM object. I use win32com library for working with COM. Interpreter crashes when trying to execute this: @return self.createIndex(row, column, child)@ Thanks!
  • Inconvenient Behaviour: QSqlTableModel.removeRow()

    3
    0 Votes
    3 Posts
    3k Views
    E
    sorry Andre, i will try to explain better now. the problem is: Why calling QSqlTableModel.removeRow() erase the row content in the view and model. (so, calling record.field().value().toString() for the removed row --without calling submitAll()-- returns empty string for all fields.!!) doing so with PyQt v4.8.5 will keep the row contents untouched until i call submitAll() for actual deletion. Thanks for your patience.
  • Strict knowledge of subset of properties involved in a userdefined script

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Error related to QConnection

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    K
    welcome to devnet There is no need for "double posting":http://qt-project.org/forums/viewthread/19247/ on devnet. Threads may be moved by moderators if required. I am closing this thread because of double posting.
  • [Solved] PyQt Dialog Window Not Popping up in Function

    8
    0 Votes
    8 Posts
    9k Views
    N
    Solved. See this "post":http://forums.cgsociety.org/showthread.php?p=7378920#post7378920.
  • PySide newbie question

    7
    0 Votes
    7 Posts
    6k Views
    F
    Yes, that was it, thanks a lot. I am still confused, and start on the tutorial again.
  • PySide compile from source on Windows 7 64-bit

    3
    0 Votes
    3 Posts
    3k Views
    R
    Maybe this "recipe":http://pypi.python.org/pypi/PySide/1.1.1qt474#installing-pyside-from-source-on-a-windows-system is what is needed. Owen
  • Fortran and Qt

    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • 0 Votes
    3 Posts
    4k Views
    R
    Hello all, The problem has morphed again. Question: Where should I look for generatorrunner on Win7? Should a pointer to it come back from PySideConfig.cmake? Details: From the Qt SDK I had both 4.8.0 and 4.8.1 libs installed and this was causing an issue, so I now have just the 4.8.0 MSVC 2008 environment. Now the error relates to @CMake Error at CMakeLists.txt:14 (message): You need to specify GENERATOR variable (-DGENERATOR=value)@ It seems that generatorrunner is a command that you can run in a linux terminal, but I have no path to it on Win7. I think it should be part of pyside distribution, but I have found no files named generatorrunner on my whole Win7 drive. The message arises here in the CMakeLists.txt provided with the tutorial. @ find_program(GENERATOR generatorrunner REQUIRED) if (NOT GENERATOR) message(FATAL_ERROR "You need to specify GENERATOR variable (-DGENERATOR=value)") endif() @ apt-file search generatorrunner on linux gives shiboken: /usr/lib/i386-linux-gnu/generatorrunner/shiboken.so My Win7 build strategy for the binding tutorial is to launch a bare console then run: @ CALL "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 set QTDIR=C:\QtSDK\Desktop\Qt\4.8.0\msvc2008 set PATH=%QTDIR%\bin;C:\QtSDK\QtCreator\bin;%PATH% set QMAKESPEC=win32-msvc2008 set BINDFOO=C:\binding-tutorial\ set Shiboken_DIR=. set PySide_DIR=. cd %BINDFOO%\libfoo qmake nmake cd %BINDFOO%\foobinding-cmake\build C:\CMake28\bin\cmake.exe .. @ Thanks for any suggestions. Owen
  • [SOLVED]QAbstractProxyModel and mapToSource

    2
    0 Votes
    2 Posts
    2k Views
    I
    This function correctly fetches row and column numbers from the model, through a proxy: @def clickedSlot(self, modelIndex): model = modelIndex.model() if hasattr(model, 'mapToSource'): # We are a proxy model modelIndex = model.mapToSource(modelIndex) print modelIndex.row(), modelIndex.column()@