Skip to content

Qt for Python

For discussion and questions about Qt for Python (PySide & Shiboken)

3.3k Topics 14.6k Posts
  • Running multiple plots with pyside2

    Unsolved pyside2 qt for python python pyside
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @anoop1 As I said, how do you expect Python's Cmd.cmdloop to interact with Qt's event-driven system and windows/widgets?
  • QMovie displays GIF with delay.

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    That won't change anything if you are blocking the event loop be it with widgets or QtQuick, you'll have similar issue. I highly recommend to fix the blocking parts so you can more freely change the GUI stack if you really want to.
  • Threading don't creating buttons in frame

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    eyllanescE
    @Black-Cat See this example https://stackoverflow.com/questions/50413628/using-qlineedit-settext-freezes-the-window-but-background-tasks-works-fine/50415394#50415394
  • Access QTableView method from child class

    Unsolved
    6
    0 Votes
    6 Posts
    616 Views
    JonBJ
    @hachbani said in Access QTableView method from child class: I still don't see how it's relevant So you have said before. Yet, for example, if you did not have the self.invalidateFilter() you show that might have been an explanation. just me trying to reproduce a minimal code for the forum, it is indeed self.MyTableView.setModel(ProxyModel). Then it's not going to be possible to help you, if what you reproduce is not like your real code, as in this case. Best of luck finding someone who can help you from different code from your actual. I'll leave it to others.
  • Variable problem in EventFilter

    Unsolved qt for python python
    4
    0 Votes
    4 Posts
    605 Views
    Y
    @jsulm Thanks i will try to use tour method @JonB i try this, it works Thanks a lot @JonB Now i will do what @jsulm propose i will work withe the qsql
  • QCommandLinkButton stops working when I recreate it

    Solved qt for python python pyside2
    2
    0 Votes
    2 Posts
    455 Views
    jsulmJ
    @Black-Cat You gorgot to connect the clicked signal from the new button...
  • how to add qaction to the menu in qtoolbar

    Unsolved
    17
    0 Votes
    17 Posts
    4k Views
    JonBJ
    @Mikeeeeee said in how to add qaction to the menu in qtoolbar: the menu appeared automatically This is not magic. You can learn an awful lot by looking at the code generated into the ui....h file (in the debug output folder) from uic. Hopefully you will see how this menu is generated, and how you might access it.
  • Signal disconnect fail

    Solved qt for python
    5
    0 Votes
    5 Posts
    2k Views
    P
    @SGaist said in Signal disconnect fail: Hi, Since you require the use of multiprocess, then you should use the interprocess facility that comes with it. You are right in the part where there's a copy of everything done. I currently have no idea how everything works so fine mixing Qt's signals and slots and Python's multiprocess. Therefore, I highly recommend that you make proper use of interprocess communication rather than rely on the luck that it worked until now. Yep, this the thing, hence I need to use python multiprocessing.Event, which has nothing to do with Qt... What made this confusing is that the Emitter process 'masquerades' as both processes (since it has all code and data to do so), and communicates with itself... :-D
  • PySide2 app doesn't capture keyboard input

    Unsolved
    2
    0 Votes
    2 Posts
    323 Views
    Kettle3DK
    OK, I found out that the issue has something to do with me using setWindowFlags(Qt.X11BypassWindowManagerHint). Does anyone have ideas as to what else to use? (Ideally I don't want an 'X' button on my lock screen, or be able to press Alt+F4 to close it)
  • PyQt5 +Yocto/Boot2qt fails to build - requires sip 4.19.19?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    S
    Hi , Update sip3_4.19.23.bb recipe version . in my case it was build successfully. Regards, Sateesh
  • Detect if a button has been pressed (100 buttons)

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    SGaistS
    There's a FAQ for the behaviour you saw with the lambda.
  • QTextEdit in QListWidget

    Unsolved
    2
    0 Votes
    2 Posts
    396 Views
    mrjjM
    Hi The QToolBox is such a collapsible widget but Im not sure we can add a checkbox to its title in any easy way. Its also possible to make the ListWidget collapsible with a bit of house keeping code to handle if its Note row is visible or not.
  • Program giving an error message when trying to run in Pycharm

    Unsolved
    2
    0 Votes
    2 Posts
    578 Views
    JonBJ
    @Starnomaly In a Command Prompt: set QT_DEBUG_PLUGINS=1 python something.py and look at the end of the diagnostic output for the error and its cause.
  • Connect ComboBox index with QSortFilterProxyModel

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    H
    Thanks for your reply @SGaist , Indeed, after reading your comment, I searched what this Invalidate means, I added self.setInvalidate() in my Fitlre method. Have a nice day.
  • Insert text at caret position using the TextEdit widget?

    Solved
    3
    0 Votes
    3 Posts
    431 Views
    G
    Hey thanks! Not sure why I couldn't find this but it works!
  • My app crashes on the laptop and not on the desktop

    Moved Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    SGaistS
    Can you provide a minimal runnable script that triggers this ?
  • Filter QTableView rows with QSortFilterProxyModel and ComboBox

    Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    SGaistS
    There's an example in the QSortFilterProxyModel documentation.
  • How to access source model methods from Proxy model

    Solved
    10
    0 Votes
    10 Posts
    6k Views
    H
    @JonB Man, thanks again really, the newbie I'm on this sort of things, you're saving me. I've looking all over the documentations for the past 3 days to do this. Thanks. It works.
  • QListWidget basic help

    Moved Unsolved
    2
    0 Votes
    2 Posts
    320 Views
    JonBJ
    @Mastiff I think How to make QListWidget items editable does what just what you want, and as a bonus it's in Python :)
  • How about exporting adaptive related python code ?

    Solved
    5
    0 Votes
    5 Posts
    463 Views
    lionelML
    Solved, thanks, it's my main program's problem :)