Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
860 Topics 3.4k Posts
  • Integrating Python with QT

    Moved Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    mrjjM

    @Qt-Enthusiast

    PyQt example

    #! /usr/bin/env python # -*- coding: utf-8 -*- # # Here we provide the necessary imports. # The basic GUI widgets are located in QtGui module. import sys from PyQt4.QtGui import QApplication, QWidget # Every PyQt4 application must create an application object. # The application object is located in the QtGui module. a = QApplication(sys.argv) # The QWidget widget is the base class of all user interface objects in PyQt4. # We provide the default constructor for QWidget. The default constructor has no parent. # A widget with no parent is called a window. w = QWidget() w.resize(320, 240) # The resize() method resizes the widget. w.setWindowTitle("Hello, World!") # Here we set the title for our window. w.show() # The show() method displays the widget on the screen. sys.exit(a.exec_()) # Finally, we enter the mainloop of the application.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • QPainter not active

    Moved Unsolved
    4
    0 Votes
    4 Posts
    13k Views
    SGaistS

    A quick google search returns this article which covers most aspects of this subject.

  • 0 Votes
    1 Posts
    580 Views
    No one has replied
  • QtJambi memory leak

    Moved Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi and welcome to devnet,

    That version of QtJambi is not part of Qt. In fact QtJambi has been deprecated a long time ago and the version you are using is a community edition. You should ask the authors of it directly.

  • Windows parenting not working on Kubuntu

    Moved Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    GofferG

    Well, there is nothing wrong about sharing preferences. But it's doesn't matter.
    We are using kubuntu 12.04 and PyQt-4.10.484.4.

    For now, I do windowB.activateWindow() when my mouse enters windowA but it's a bit limited and I don't really like it.

  • Writing directly to the Frame Buffer with PySide/PyQt

    Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    J

    @SGaist said in Writing directly to the Frame Buffer with PySide/PyQt:

    PyQt5 is either GPL or Commercial, so if you want to make a closed source application with PyQt5 you have to buy a commercial licence from them.

    This project is for an embedded device, which I believe carries its own particular considerations. I've not downloaded anything for the time being, as I need to read up on cross compiling of Qt anyway.

  • 0 Votes
    9 Posts
    6k Views
    kshegunovK

    No it is not. Have you read the documentation carefully? It should look something like:

    ASM_FILES += asm.s asm_cl.output = ${QMAKE_FILE_OUT} asm_cl.commands = ml /c /Cx /coff /Fo${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME} asm_cl.input = ASM_FILES asm_cl.variable_out = OBJECTS QMAKE_EXTRA_COMPILERS += asm_cl
  • How to switch tab under PyQt5

    Moved Solved
    5
    0 Votes
    5 Posts
    17k Views
    A

    @SGaist

    Hello SGaist, thanks a lot for your explanation. It works great!

  • 0 Votes
    3 Posts
    3k Views
    robbiecooperR

    @SGaist Thanks for the reply! Not sure why, but this line in addNewSourceFolder did it;

    item.setSizeHint(picwidget.sizeHint())
  • PySide2 contextMenuEvent and mouseMoveEvent clash

    Moved Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    jsulmJ

    @Goffer Well, without code it is hard to help...

  • How can I create a process in C++ or Qt?

    Unsolved
    9
    0 Votes
    9 Posts
    4k Views
    SGaistS

    Hi,

    This looks like it could be a job for QtConcurrent::run.

  • What is the current state of Jambi ?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    H

    Hello, @Chris-Kawa !

    Thanks for your link and advice.

  • Multiline support using QTranslate

    Unsolved
    2
    0 Votes
    2 Posts
    884 Views
    sierdzioS

    Yes it does.

    How can we translate the string which contains \n during the string translation also.

    Just include \n in the translated text :-) If it is needed in other language, of course.

  • PyQt5 QMediaPlayer ResourceError with seemingly valid QUrl

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    SGaistS

    Did you try with a file from another container/format ?

  • 0 Votes
    1 Posts
    481 Views
    No one has replied
  • Close or hide window ? Which the best ?

    Moved Unsolved
    3
    0 Votes
    3 Posts
    4k Views
    ?

    Hello @Wieland,

    In my case, I am integrating my interface as a plugin in QGIS. So, when closing all the windows and launching from QGIS, the main window is displayed. I don't really know If I need to destroy in this case.
    Thanks for your reply.

  • 0 Votes
    8 Posts
    4k Views
    SGaistS

    Tricky one !

    Thanks for sharing :)

  • PySide2 is stable like PyQt5?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    Well, the best thing to do IMHO is to run a test/benchmark to see it it fills your need.

  • PySide2 Windows build error

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    N

    I tried your suggestion. No change.