[DiscordArchive] but why do I have to set margins?
[DiscordArchive] but why do I have to set margins?
Archived author: schlumpf • Posted: 2019-06-01T20:25:43.935000+00:00
Original source
which woujld be some dockwidget specific thing
Archived author: Skarn • Posted: 2019-06-01T20:25:51.503000+00:00
Original source
the shit is happening inside the widget's layout
Archived author: Skarn • Posted: 2019-06-01T20:25:58.182000+00:00
Original source
not dockwidget's layout
Archived author: Skarn • Posted: 2019-06-01T20:26:04.746000+00:00
Original source
in terrain_tool.cpp file
Archived author: Skarn • Posted: 2019-06-01T20:26:07.682000+00:00
Original source
not in MapView
Archived author: schlumpf • Posted: 2019-06-01T20:26:07.684000+00:00
Original source
oh
Archived author: schlumpf • Posted: 2019-06-01T20:26:24.882000+00:00
Original source
then I can't really say anything but "try vboxlayout and sizepolicies, sorry, not an expert here"
Archived author: Skarn • Posted: 2019-06-01T20:27:09.495000+00:00
Original source
```py
QGroupBox* terrain_type_group (new QGroupBox ("Type"));
QGridLayout* terrain_type_layout (new QGridLayout (terrain_type_group));
terrain_type_layout->addWidget (radio_flat, 0, 0);
terrain_type_layout->addWidget (radio_linear, 0, 1);
terrain_type_layout->addWidget (radio_smooth, 1, 0);
terrain_type_layout->addWidget (radio_polynomial, 1, 1);
terrain_type_layout->addWidget (radio_trigo, 2, 0);
terrain_type_layout->addWidget (radio_quadra, 2, 1);
terrain_type_layout->addWidget (radio_gauss, 3, 0);
terrain_type_layout->addWidget (radio_vertex, 3, 1);
layout->addWidget (terrain_type_group);
```
Archived author: Skarn • Posted: 2019-06-01T20:27:18.076000+00:00
Original source
I think the issue is in how these blocks are made
Archived author: Skarn • Posted: 2019-06-01T20:27:22.425000+00:00
Original source
that seems weird to me