Questions tagged [qsplitter]

The QSplitter class, part of the Qt framework, implements a splitter widget.

A splitter lets the user control the size of child widgets by dragging the boundary between the children.

90 questions
2
votes
2 answers

Detecting when QSplitter child widget is collapsed

I have a class that uses a vertical QSplitter to separate two important widgets (the arrow pointer is at the splitter position): The upper child widget is a QTextEdit while the lower child is a custom widget that interacts with my app's tagging…
Will Kraft
  • 553
  • 1
  • 8
  • 23
1
vote
0 answers

QTextBrowser Resizing on a QGridLayout

I have a QGridLayout which contains all the layout for my class. Until there everything goes fine. I added a QSplitter for other things and then at the bottom (After the splitter) i want the QTextBrowser to be. Fine, works. But i want to resize, i…
Kazuma
  • 1,371
  • 6
  • 19
  • 33
1
vote
1 answer

Qt Resizing a QMainWindow with a Splitter

I have a QMainWindow with: Two widgets in a horizontal splitter. "m_liner" is on the right side Both widgets have a minimum size of say, 300 pixels. A checkbox to hide/show the right-side widget m_liner. I want the overall QMainWindow to expand…
Janik Zikovsky
  • 3,086
  • 7
  • 26
  • 34
1
vote
1 answer

How to prevent QSplitter child from collapsing before completely minimizing its size to 0?

I'm trying to get a horizontal QSplitter to allow me to resize one of its children's width to 0 without it collapsing before reaching the edge. Here's an example of QSplitter with 2 children, a QWidget, and a QPushButton, where the button collapses…
1
vote
1 answer

Custom QSplitter handle button not disappearing when toggling off righthand widget

I'm experiencing an issue with a custom QWidget/QSplitter implementation where the handle button for the righthand widget does not disappear when the widget's visibility is toggled off (using QWidget::hide() or show()). The issue only occurs with…
1
vote
1 answer

How avoid PyQt5 to crash when I move Qslitter to the edge with a matplotlib figure in it?

I have two matplotlib figures inside a QSplitter. When I move the Splitter to the edge (the figure disapear then), the code crashes. the error I get is Traceback (most recent call last): File…
ymmx
  • 4,769
  • 5
  • 32
  • 64
1
vote
1 answer

Concatenate Multiple QSplitter in PyQt5

I have 3 QWidgets which I want to concatenate. Basically it should look like this: | | | | QWidget 1 | QWidget 2 | QWidget 3 | | | | QSplitter1 …
1
vote
1 answer

splitting screen based on number of pixels

so i am trying to create a GUI with PyQt5 and i need my GUI to be split like below, numbers are Pixels I am trying to start specific windows at specific pixel value and keep it that way even if I stretch my window i want windows to stay at specific…
1
vote
1 answer

How to animate the splitter when setSizes() method is called?

I have the QSplitter widget in my Qt5 GUI, and there are two child widgets added to that splitter. and there is a QPushButton widget, when that button is pushed second child disappears and when again that button is pushed that child widget appears.…
1
vote
1 answer

How to make user resizable QWidget inside a QScrollArea?

Requirements: QScrollArea containing several widgets. Each widget should be individually resizable by the user (in either horizontal, or vertical, but not both directions). User resizing of a widget should not change the size of other widgets. It…
Pragy Agarwal
  • 578
  • 1
  • 8
  • 22
1
vote
1 answer

PyQt - Toggle between two widgets withtout resizing qsplitter

I try to toggle a splitter container between two widgets keeping the actual size of the splitter. For this I use QSplitter.sizes() to read the actual size and QSplitter.setSizes() after I toggle my widgets. The problem is that I have a QToolButton…
1
vote
1 answer

Restore geometry and state of an arbitrary QDialog

In our applications we are using customizable dialogs using exhaustively QSplitter, so that our customers can rearrange the dialogs to fit their needs. (Sometimes we are also using QDockWidget, but this seems to be similar.) Now, it is very…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
1
vote
1 answer

Qt make QSplitter unmovable by user

how to make make qsplitter unmovable by user and add possibility to enable/disable this function? Thankyou.
Sacha_D
  • 68
  • 1
  • 10
1
vote
1 answer

How to set stretch ratio in QtDesigner?

I remember that I saw the property where I could set ratio values of elements widths enumerating them with comma. There is a QSplitter. How can I set ratio of stretching it's widgets in QtDesigner?
Ufx
  • 2,595
  • 12
  • 44
  • 83
1
vote
1 answer

How to make one widget fixed when using QSplitter

There are three frames: top, middle and bottom. Whenever I resize the bottom frame, the top frame always resizes at the same time. I want to the top frame to keep its size when the bottom frame resizes. How to achieve that? from PyQt5.QtWidgets…
user6456568
  • 579
  • 9
  • 23