Skip to content

Language Bindings

You're using Qt with other languages than C++, eh? Post here!
865 Topics 3.4k Posts
  • How I can to part?

    Moved Unsolved pyqt5
    6
    0 Votes
    6 Posts
    2k Views
    mrjjM
    @Dl10 Hi I think it exists https://www.youtube.com/watch?v=Dmo8eZG5I2w There you just place 4 qframes on center mainwindow Then right click (not on frames) and from layout menu select Grid layout
  • Adding to my project

    Moved Unsolved
    1
    0 Votes
    1 Posts
    685 Views
    No one has replied
  • QMdiSubWindow Buttons Merged With Menubar

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    J
    @SGaist Thanks for the reply. It has the same behavior in the MATE desktop environment. So far I've also tried in Unity and Gnome 3.0 as well.
  • How can I delay but not time.sleep?

    Moved Unsolved pyqt5
    3
    0 Votes
    3 Posts
    3k Views
    T
    @Dl10 You may split the function and start a timer.. something like.. from : testFunction(){ step1.. step2.. time.sleep().. step3.. } to testFunction(){ step1.. step2.. qtimer t; connect(&t,SIGNAL(timeOut()),this,SLOT(testFunction2())); t.start(2000); } testFunction2(){ step3... } PS: Syntax may vary.. this is a c++ code.. please convert it to pyqt5.. Hope this is what you are expecting... and thats what i understood from your post...
  • pyqt4 float slider

    Unsolved
    2
    0 Votes
    2 Posts
    927 Views
    SGaistS
    Hi and welcome to devnet, What slider are you talking about ?
  • Accessing the main window from Python

    Solved
    8
    0 Votes
    8 Posts
    20k Views
    JonBJ
    Well, for right or for wrong architecturally, I ended up writing a function (Python, but you get the drift :) ): def findMainWindow() -> typing.Union[QMainWindow, None]: # Global function to find the (open) QMainWindow in application app = QApplication.instance() for widget in app.topLevelWidgets(): if isinstance(widget, QMainWindow): return widget return None No Python global variables --- which I now understand, are about as "global" as the parochial village I live in, are misnamed really, and are brain-dead in the way they work :)
  • Two (probably) very simple questions

    Solved pyqt
    14
    0 Votes
    14 Posts
    9k Views
    S
    @jazzycamel That worked! How would I load a UI file in the Widget class? I tried using uic.loadUI(), but that seems to override the previous gui.
  • Probability Arduino uno + TFT display + Qt = Best & Low Cost HMI & any More.

    Unsolved
    5
    0 Votes
    5 Posts
    3k Views
    J
    hmmm.... right but i thing not in analog input/output.
  • Can we use python in qt?

    Moved Solved
    6
    0 Votes
    6 Posts
    2k Views
    tekojoT
    @JNBarchan it's being worked on. Getting something like that back up to date takes time. It was left behind for a long time. I mentioned it, as it will at some point be an option.
  • Segmentation Fault trying to display camera feed

    Moved Unsolved python pyqt camera segfault
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    24 Posts
    20k Views
    X
    Yeah i feel like i do sudo apt-get update && upgrade at least once a day. I just checked about SIP and i compiled it from source but i cant remember if i actually used the command make and make install. Does that mean i have to reinstall pyqt5 again? I guess i just open a new thread. Thanks for all the help @SGaist
  • how to remove obsolete entries from .ts linguist file

    Solved
    3
    1 Votes
    3 Posts
    8k Views
    L
    Hi @J-Hilk thanks for your reply. Your help is much appreciated :)
  • 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 python
    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
    564 Views
    No one has replied
  • QGraphicsTextItem cursor issue when setting new text

    Moved Unsolved python
    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
    759 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?
  • Why don't the signals emit from QThread ?

    Unsolved qthread pyqt5 qtimer signals emit signal & slot
    23
    0 Votes
    23 Posts
    15k 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
    2k 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 :)