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
55
votes
3 answers

How to manage QSplitter in Qt Designer

When I press a button, I bring up a dialog where user select things and press 'Ok' at the end. I want a splitter in this dialog. Left pane will show tree and right will show something else. How do I do that right? From Qt example itself: QSplitter…
zar
  • 11,361
  • 14
  • 96
  • 178
19
votes
6 answers

How to remove QWidgets from QSplitter

In my app have a window splitted by a QSplitter, and I need to remove an widget. How can I do that? I can't find useful methods
JuanDeLosMuertos
  • 4,532
  • 15
  • 55
  • 87
18
votes
6 answers

QSplitter becoming undistinguishable between QWidget and QTabWidget

I am puting a QWidget and a QTabWidget next to each other in one horisontal splitter. And the splitter loses it's shape, you can know that there is a splitter only by hovering mouse on it. How to make it visible? Thanks.
Narek
  • 38,779
  • 79
  • 233
  • 389
14
votes
1 answer

QSplitter: How to make second column smaller?

In QtCreator I created a QSplitter which separates vertically a QTreeWidget from a vertical layout with many things on the right. I would like that this second column by default takes the minimum space it needs to maximise the first one. I tried…
Stefano
  • 3,981
  • 8
  • 36
  • 66
13
votes
1 answer

Qt - Making a Splitter Horizontal and Vertical at same time

I have a QGridLayout with a QSplitter on it. In that QSplitter I have two elements with a splitter that lets me move the splitter from left to right. Fine, there it's fine. But then I want to add another splitter but that moves up to down. (I'll…
Kazuma
  • 1,371
  • 6
  • 19
  • 33
13
votes
4 answers

How to initialize the splitter handle position?

I want to initialize the splitter handle position like the following instead of in the middle. I cannot set it in the property. How to solve this?
Casper
  • 4,435
  • 10
  • 41
  • 72
11
votes
1 answer

pyqt qt4 How to add a tiny arrow/collapse button to QSplitter

You can customize the thickness and background image of the splitter handle http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qsplitter But is there a way to add a small graphical arrow button so when the user clicks on it, I can…
user178047
  • 1,264
  • 15
  • 20
11
votes
2 answers

QSplitter with one fixed size widget and one variable size widget?

Is it possible to have a QSplitter which has one widget of a fixed size and the other with a variable size? This code sets things right, but when the window is resized the splitter changes proportionally to the initial widgets sizes: vSplitter =…
Pietro
  • 12,086
  • 26
  • 100
  • 193
9
votes
1 answer

How to move QSplitter?

Say I have a window, where there are 2 horizontal sppliters, and a button. How to move a splitter up/down by clicking on the button?
Narek
  • 38,779
  • 79
  • 233
  • 389
9
votes
5 answers

How to force QAbstractItemView recalculate items sizeHints

I have QListView and QTabWidget inside QSplitter. QListView is using custom model and custom delegates. In delegate I reimplemented paint and sizeHint methods. But when I resize view - height of elements doesn't recalculated. How can I fix…
Dmitry Sazonov
  • 8,801
  • 1
  • 35
  • 61
8
votes
1 answer

How to resize splitter widgets programmatically in Qt?

I use QSplitter to place some widgets side by side. Being a user, I can resize those widgets just dragging a splitter. Being a programmer, I don't know how to specify exactly what width and what height do I want at the moment. That's my original…
John Smith
  • 109
  • 1
  • 7
7
votes
1 answer

Qt's opaqueresize property on QSplitter meaning

I didn't find this on the web... What does this opaqueResize property on QSplitter (see doc) stand for? Thanks.
moala
  • 5,094
  • 9
  • 45
  • 66
5
votes
1 answer

How do I prevent QSplitter from hiding child widgets completely?

I have a horizontal QSplitter with two child QWidget objects. Now, when user drags the splitter handle to the right beyond a certain threshold (which, I assume, depends on child's minimum size), the right QWidget disappears with a snap.…
sigil
  • 815
  • 8
  • 16
4
votes
1 answer

How to allow a QWidget to expand to an entire tab within a QTabWidget?

I've never been too great when it comes to layouts and size policies, so this is likely a simple answer, but here goes. When I add a new tab to a QTabWIdget, and set the widget to a QSplitter, the splitter will use the entire amount of space given.…
dajaffe
  • 855
  • 13
  • 34
3
votes
1 answer

PYQT QSplitter issue

I use QSplitter and I found out that the minumum width of a widget in the splitter is 32 pixels (and 23 pixels in height). Does anybody body knows how to change this default. In other words, you can't drag the splitter so that one of the widgets…
SomeOne
  • 31
  • 1
  • 3
1
2 3 4 5 6