Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
865 Topics 3.4k Posts
  • Connecting MySql Database to PySide/QT QTableView?

    8
    0 Votes
    8 Posts
    9k Views
    SGaistS
    It's not on the model, it's on the QTableView. You have to code the connection yourself e.g. in your widget constructor
  • How to get complete strings and its translation from QTranslator object?

    1
    0 Votes
    1 Posts
    740 Views
    No one has replied
  • How to get the translated text without loading the translator file?

    1
    0 Votes
    1 Posts
    680 Views
    No one has replied
  • How to integrate a Visual Studio user control into a QT Window

    3
    0 Votes
    3 Posts
    2k Views
    JKSHJ
    Hi, I've never combined .NET with Qt before, but have a look at http://qt-project.org/doc/qt-5.1/activeqt/activeqt-index.html -- all the ActiveQt documentation can be reached through there. In particular, try: http://qt-project.org/doc/qt-5.1/activeqt/qaxwidget.html http://qt-project.org/doc/qt-5.1/activeqt/activeqt-dotnet.html
  • QNetworkReply objects getting mixed up with other objects in PySide ?

    2
    0 Votes
    2 Posts
    2k Views
    S
    For what is worth this issue seems to be solved after upgrading to PySide 1.2.1.
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem with QTimer, Signal/Slot and accessing QML text object

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Making a QWidget fill a QGraphicsScene (PySide)

    2
    0 Votes
    2 Posts
    1k Views
    T
    Just for future reference to anyone who runs across this I ended up going with my current solution. QGraphicsScene is very optimized and seems to do a good job of not bothering with redrawing obscured objects. This approach also allowed me to do some other things visually that would have been much more difficult to implement otherwise.
  • 'QtCore4.dll' not found

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Did you follow the "deployment documentation":http://qt-project.org/doc/qt-4.8/deployment-windows.html ?
  • Fail to import icons_rc with Python 3.3

    2
    0 Votes
    2 Posts
    2k Views
    R
    you'd better not move it.Each time when you run your program ,the current folder is always the one that the start file lives in.
  • I've translated QT Creator in Italian

    9
    0 Votes
    9 Posts
    3k Views
    O
    ok, SGaits thanks for your explanation I followed the "UncleZio" suggestions ciaooo
  • Automatic Wrapper using Qt

    2
    0 Votes
    2 Posts
    1k Views
    sierdzioS
    What do you want to wrap?
  • Easy_install PySide throws SyntaxError for examples [Python 3]

    4
    0 Votes
    4 Posts
    2k Views
    B
    I concur with you that the errors are harmless to the install. Its an open source project: it is low priority for them to port the examples to Python 3. I don't know how to read the install scripts to know whether the success of the installation is conditional on successful interpretation by Python 3 of the examples. Probably not, since you will find whether the install was successful soon enough as you try PySide with your real code. Your post is good to know (for others who will be trying Python3 soon) but I wouldn't file a bug report, the PySide project probably knows already.
  • [eternally unsolved] PyQt or PySide usable as embedded scripting engine?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    B
    I can confirm that the QPrintDialog used as above does work (whereas modally it did not) on Qt 4.8.2(?). So my question is now academic, about how Qt signals in PySide would bind the string parameter to QPrintDialog.open() to a method. Also, in OSX, the dialog appears hung down off the mainwindow title bar, and IS non-modal in the sense that the app still gets events in the main window that is not obscured by the print dialog. So now I need to read up on whether the fact that the dialog will not go behind the main window, or say off to the side, is a feature of OSX in general for all non-modal dialogs, or just a feature of their native print dialog. If I open a second non-modal dialog (but not a native OSX dialog), where will it appear? Can you say that as far as Qt is concerned, the dialog is non-modal, but as a native OSX dialog, it has a restricted sense of non-modal? Is there another word for such behaviour, such as pull-down dialog, or tear-off (I'm not sure it will tear off?) My original attempt to make the dialog modal is laziness? Now I must test that anything the user does while the print dialog is open has no harmful effect. Including testing that if the user asks to print again, another print dialog should not open.
  • 'Large' program structure - basic concepts

    2
    0 Votes
    2 Posts
    2k Views
    B
    First, are you talking about instances or classes? If instances: Although the general rule is: don't use global variables... sometime you do. (After all, if instances 'know' about other instances, they do, you can't pretend they don't, but you could pass them around in parameters.) Commonly, in a config.py module at the top. For example, mainWindow=None in that module. The module creating the main window would: @import config ... config.mainWindow = QMainWindow()@ If classes, search for 'circular import problem.' Best to avoid, generally by rearranging your classes, but sometimes you solve by doing imports at the bottom of a module.
  • Rich text formatting font changing problem, working code example

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Corelation with Hardware

    13
    0 Votes
    13 Posts
    4k Views
    SGaistS
    Please open a new thread when you have new questions Look at QFile and the xml module
  • PySide Menu not working

    3
    0 Votes
    3 Posts
    4k Views
    SGaistS
    Hi, IIRC from my pythonic days, you were replacing the function centralWidget with you widget object. As a side note, QMainWindow has a default menu bar that you can use so you don't need to create you own.
  • How to make a modal dialog?

    3
    0 Votes
    3 Posts
    2k Views
    R
    Thankfully, I found the answer "somewhere else":http://stackoverflow.com/questions/5874025/pyqt4-how-to-show-a-modeless-dialog... @ ldlg = LegendDialog(self) ldlg.show()@