qgridlayout Questions

2

Solved

I am looking for a way to create a grid of graphs that can be dragged/dropped to rearrange the order. My first try was using QDockWidgets as they allow for drag/drop, however they were limited in a...
Slr asked 31/3, 2020 at 7:6

1

Solved

This should be easy but I'm just becoming more and more confused looking at suggested answers that don't work. All I want to do is to be able to have a bunch of widgets in a grid layout where resiz...
Xerosis asked 19/2, 2021 at 18:7

1

Solved

I have an application built using PySide2 which uses setColumnStretch for column stretching and setRowStretch for row stretching. It works well and good, but I am unable to understand how it is wor...
Decolorant asked 27/4, 2020 at 3:29

2

Solved

In a application I create lines of widgets like this (there is a button to create the line and another to remove the widget): Code for creation of the widgets lines : def ajouter_ref_artistique...
Corposant asked 12/9, 2019 at 14:6

3

Solved

I have a QHBoxLayout on my form with 3 layouts added to it. The second one has the items concerning my question. I have a QVBoxLayout on the second pane of the main layout (the QHBoxLayout). This ...
Aficionado asked 25/12, 2012 at 20:48

1

Solved

I'm trying to figure out a way to layout items proportionally by specifying a kind of weight for each item. For example the way Android does their layouts. The way I'm trying to achieve it is like...
Edible asked 1/6, 2018 at 21:47

1

Solved

To this question I am referring to the example calculator.py from http://zetcode.com/gui/pyqt5/layout/ In the example the QGridLayout was used. I want to ask if it is possible to define the width/h...
Tautomerism asked 22/12, 2017 at 15:13

1

Solved

I am trying to create a layout looking like this: _________ | | | |1 | 2 | |__|______| | 3 | 4 | |____|____| Basically, I want cell number 1 the first row to be thinner that cell 2, but cells n...
Lohengrin asked 20/12, 2017 at 16:10

1

Solved

I have 3 PlotWidget (from the pyqtgraph library), obj1, obj2 and obj3, which I try to insert in a QGridLayout. I want to display all three objects in a single row, but obj1 must be twice as large a...
Clotheshorse asked 6/12, 2017 at 19:9

1

Solved

I am currently learning qt. And I am trying to build a small GUI program with 81 QPushButton on it. I want to set those buttons to 9 rows and 9 cols. The best way I can think to implement this lay...
Montero asked 10/11, 2017 at 15:24

4

Solved

I've got a QGridLayout with a few widgets in it. The important ones are 2 labels, which I use for drawing images to the screen. Well, if the user wants, he can change the resolution of the incoming...
Brooklet asked 20/2, 2013 at 13:7

1

Solved

I am trying to create this geometery: _ ___ | | | |1| 3 | |_|___| |_2_| Where the 1 box is tall and skinny, the 2 box is short and wide. I can't quite get the layout correct. When I cange the ...
Everyman asked 18/10, 2015 at 5:35

2

Solved

I try to remove widgets from a specified row in a QGridLayout like this: void delete_grid_row(QGridLayout *layout, int row) { if (!layout || row < 0) return; for (int i = 0; i < layout-&g...
Lenes asked 22/3, 2011 at 17:20

1

Solved

The question says it all. I have a 5x3 grid. It looks like this row 0: buttonA--buttonA--buttonA nothing buttonB--buttonB--buttonB row 1: empty row row 2: buttonC nothing buttonD nothing buttonE ...
Trapezius asked 11/1, 2013 at 11:24

2

Solved

I would like to fill a QGridLayout with QWidgets. The QWidgets need to appear in a top-left to top-right fashion and proceed to fill the down downwards after each row is filled with QWidgets. An ex...
Soso asked 11/3, 2012 at 23:45

2

Solved

------------ ------ | | | 2 | | | | | | 1 | ------ | | ------ | | | 3 | ------------ ------ How to arrange the QGridLayout like above? I tried: QGridLayout *layout = new QGridLayout(); central...
Williwaw asked 2/3, 2012 at 11:59

3

Solved

I'm trying to layout a window (all in code) with a QGridLayout. I can add widgets to the layout and they display in my window, but I can't figure out how to resize them properly. Here's what I'd li...
Damp asked 13/10, 2011 at 18:33
1

© 2022 - 2025 — McMap. All rights reserved.