Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
853 Topics 3.3k Posts
  • python + qt

    Moved Solved
    8
    0 Votes
    8 Posts
    3k Views
    U

    what i was describing, fits your 3rd point more.

    i would want to use c++ but for some part of the program, python does the job better than c++ that's why i also need python

    but maybe 1st point is good too. only pyqt

  • Python/PyQt heap, stack and deletion

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    JonBJ

    @jsulm
    As I said, I totally understand that, I was not complaining, in this question I was just trying to clarify the Python behaviour so that I may bear it in mind when I read answers elsewhere. Which I believe we have now indeed covered here, thank you.

  • Replacing a widget with another one containing splitter

    Moved Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS

    What behaviour do you get with QSplitter ?

  • Using Metronic 5 libraries to Qt.

    Unsolved
    1
    0 Votes
    1 Posts
    500 Views
    No one has replied
  • QGraphicsTextItem cursor issue when setting new text

    Moved Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    C

    Hey @m-sue , thanks for your reply.

    The problem isn't that cursor.movePosition(QTextCursor.NextCharacter) does not move the cursor, but rather that self.setHtml() sends the cursor to the end regardless of its current position. This does not explain why self.setTextCursor(cursor) has no effect.
  • ubuntu 10.04 and qt4 driver compatibility issues

    Unsolved
    2
    0 Votes
    2 Posts
    631 Views
    JonBJ

    @Fahad-H

    I need to sort out an issue in an existing Ubuntu 10.04 system which runs qt4 package.

    I assume the machine you are using is not the actual one which was used to do the compilation originally?

    I tried to install gcc drivers and all, but still some compatibility issues are there and the issue still persists.

    You are going to need to correctly install and set up g++.

    http://ubuntuguide.net/how-to-install-and-setup-gcc-4-1g4-1-in-ubuntu-10-0410-10 https://askubuntu.com/questions/928510/problem-in-installing-g-in-ubuntu-10-04 https://stackoverflow.com/questions/14969853/what-packages-are-needed-on-ubuntu-10-04-to-run-programs-compiled-with-gcc-g-4

    It might help if you knew precisely what version of g++ the software you have was compiled for when working. But I don't suppose you know that?

    BTW:

    I just updated one qt4 (*.pro) program

    Do you actually need to update the .pro file for some reason? Or do you mean you've made a change in the source code?

  • 0 Votes
    23 Posts
    12k Views
    daegontavenD

    @SGaist I need the slot send_console_log to be called when the signal written in ConsoleStream is emitted. When running the program with a normal while/for loop in the interpreter, the slot will be called becuase at that moment its non blocking. But the moment I add time.sleep into a loop, slots will only be called at the end when all the blocking is over. Thank you for looking into this.

  • PyQt GUI using Qt Designer and creating .py file

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS

    Great !

    Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

  • 0 Votes
    17 Posts
    5k Views
    J

    Done, thanks as always @SGaist!

  • Embedding python in Qt

    Moved Unsolved
    2
    0 Votes
    2 Posts
    797 Views
    sierdzioS

    Yes, it is described in Python documentation: link

  • 0 Votes
    1 Posts
    739 Views
    No one has replied
  • QT - Read translator file .ts/.qm on translations.qrc file

    Unsolved
    6
    0 Votes
    6 Posts
    4k Views
    SGaistS

    Hi,

    What exactly doesn't work ?

  • Blocking functions cause buffer to delay output

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    daegontavenD

    @VRonin Oh yeah that was brought up a few times and I'm aware of it. But the stackoverflow version was not a good mvce. I suppose the GitHub version explains the issue better. The loop actually runs in an environment without access to qt UI or its variables. I'm still writing the buffer so will keep this posted unless I can't figure out the buffer flush myself.

  • 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
    12k Views
    SGaistS

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

  • 0 Votes
    1 Posts
    554 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
    949 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.