Skip to content

Tag: pyqt5

finplot as a widget in layout

I am trying to add finplot, https://pypi.org/project/finplot/, as a widget to one of the layouts in my UI. I created a widget for finplot and added it to the widgets in the layout but I get the following error: Here is the code that I used. Answer The create_plot_widget() function creates a PlotItem that cann…

How to write correctly PyQT5 event function

How can I correctly write the event function to pass from one QLineEdit to another one by pressing the enter key? I know how to do that in this way: Working Example Now i want to understand how to do the same with this code (i think that the problem is with super() and init but i don’t know why).

PyQt5 – Show virtual keyboard

I’m trying to figure out how to use a virtual keyboard for a touchscreen, using python 3.8 and PyQt5 on Windows. I saw that Qt had his own plugin QtVirtualKeyboard. I pretty much followed what has been done in this link, first installing Qt 5.15 with the Virtual Keyboard support, and then setting up the…

QGridlLayout with non-stretchable-height rows

I’m trying to build a QGridLayout with stretchable-width columns but non-stretchable-height rows. The grid in inside a QScrollArea, and with the exception of the height, it’s almost working. You can see it in the following images: As you can see, the rows are being vertically stretched. I would li…