S
S
Sergey Karbivnichy2022-02-19 10:17:24
PyQt
Sergey Karbivnichy, 2022-02-19 10:17:24

How to resize widgets in layout?

I decided to make myself a handy guide to the SI library with blackjack, search and pretty ladies. I have implemented almost all the functionality, there is a "little thing" that I don't know how to do, namely resizing the widgets.
Here's how I did it: I placed a horizontalLayout on the form, and put QTreeView and QTextBrowser into it. I need to change the size of QTreeView and QTextBrowser with the mouse, but I have no idea where to dig. The only thought that comes to mind is to catch events, do a bunch of different calculations and, depending on them, change the size. But something tells me it's fun cycling. Attached the skin of what I want:
621099214baba526736363.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question