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
1
vote
1 answer

Setting initial size of QTabWidget in QSplitter PyQt application

I have a vertical splitter with a QTabWidget at the top and a QPlainTextEdit widget below (used as a logging window). In the real application, the tabs are filled with QWidgets, containing a matplotlib canvas and a QFrame with some control…
Chipmuenk
  • 607
  • 1
  • 7
  • 22
1
vote
2 answers

PyQt - add layouts to QSplitter

I want to use a QSplitter to split the MainWindow on two sides. On the left I want to have a layout containing a folder view and on the right another layout where I’ll plot some things. But I can only add Widgets on the QSplitter and the Layouts are…
A. Dav
  • 41
  • 2
  • 5
1
vote
0 answers

How to prevent Qt widget containers from stretching indefinitly?

My main application window is constructed as follows: A QVBoxLayout; In its upper cell there is a horizontal QSplitter; In its lower cell there is a QFrame with QHBoxLayout. Now, when I add widgets to either QSplitter or QHBoxLayout and there is…
sigil
  • 815
  • 8
  • 16
1
vote
2 answers

Qt: QSplitter, redo sizes

When the application is launched but yet in construction time (when all the initial widget is being created and so on), I add to my layout a QSplitter, with two widgets, and I want the second widget occupies more or less the 60/70% of the available…
ABu
  • 10,423
  • 6
  • 52
  • 103
1
vote
0 answers

Seamless scrolling of QSplitter

I have a widget with a splitter, see below My problem is that I can adjust the splitting only in some range. I can adjust the upper part fr_SelectModel (red) to 100%. Then I can seamlessly adjust the lower part frp_Editors between 0-30%, thereafter…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
0 answers

Show QSplitter child widgets titlebar

When I add QWidget to QSplitter, header/title bar of the child widget gets hidden automatically. is there a way to show it ?? Ex: QSplitter* sp = new QSplitter(); QWidget* wid = new QWidget(); wid->setWindowTitle("Mytitle); …
NDestiny
  • 1,133
  • 1
  • 12
  • 28
1
vote
1 answer

resizing widgets inside the QSplitter

I need to update the QSplitterHandle position when QSplitter child widget is resized due to other reason, than moving splitter handle. Particularly, I have the composite widget inside the splitter, and one of it's children is hidden. I've tried the…
1
vote
2 answers

QSplitter.sizes indicates wrong sizes

I save the state of one of my QSplitter like that: self.options.setValue("Window/final_splitter", self.splitter2.saveState()) And I restore it like that: self.splitter2.restoreState(self.options.value("Window/final_splitter")) When I save the…
JPFrancoia
  • 4,866
  • 10
  • 43
  • 73
1
vote
1 answer

Removing a widget by invoking from a button which is set using QSplitter() in PyQt4

I want to make the "Application 1" disappear when the "Single" button is clicked. And show it again i mean both when "Split" button is clicked. Is there any method to make disappear/collapse a widget from QSplitter(). Here's the basic layout…
dragfire
  • 435
  • 1
  • 7
  • 20
1
vote
1 answer

Qt centralwidget toolbar splitter

I am working on a Qt project based on QMainwindow having left and right toolbars. What is the better way to add splitter between QMainwindow and toolbars. As in Qt creator we have splitters between code editor and other panels. Central widget, right…
1
vote
1 answer

Qt QSplitter and unresponsive GUI (cpu 100%)

I'm trying to implement the following layout |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | | | | | | | QTABWIDGET | QGLWIDGET | | | | | | …
linello
  • 8,451
  • 18
  • 63
  • 109
1
vote
1 answer

PyQt QSplitter: is there a way to define orientation as both vertical and horizontal?

If I want to be able to change the dimensions of an object inside the splitter in both directions.
Tomer
  • 189
  • 1
  • 3
  • 11
0
votes
1 answer

QSplitter does not correctly set sizes

I have a horizontal QSplitter with two widgets. I want to replace the right hand widget with a new one in a way that the proportions the user has set are maintained. Below is a simplified version of the code I currently…
cdyer
  • 1,220
  • 1
  • 12
  • 21
0
votes
0 answers

How do I catch the PyQt5 QSplitter.resizeEvent?

I can catch the user resizing or repositioning the window simply by defining functions: def resizeEvent(self, event): ... def moveEvent(self, event): ... But I also have 2 QSplitter, and would like to know any new split the user has applied to make…
ullix
  • 333
  • 1
  • 3
  • 14
0
votes
2 answers

Best practices for using QSplitter in pyqt5? Trying to add a movable separator to a project

A UI that I'm trying to create looks roughly like this: Until now there's been no splitter, but now I want to put a movable splitter where the red line is and be able to drag it left or right. So I used a QSplitter(using Qt Creator) and put it…
tagseman
  • 21
  • 4