All Questions
440 questions
0
votes
1
answer
33
views
Unaligned Widgets in a Layout (in the GroupBox)
I'm trying in vain to center align a button and a text, both placed in a layout.
Himself placed in a GroupBox.
I have this code :
// Initialization
QScrollArea *centralFrame = new QScrollArea();
...
0
votes
1
answer
64
views
QStackedWidget only shows the contents of the first page
In my example, I only see the first label - that's on page 1 of the stacked widget. I see no "caption" for the stacked widget's page(s), either.
class QTest : public QDialog {
public:
...
0
votes
1
answer
39
views
How to pass an instance of an object called via QQmlComponent::create to an existing QML element in the layout tree
I am in the process of developing a GUI, and during the development process there was a need to pass a dynamically created element into an existing Qml layout.
I am using the following method to gen ...
0
votes
0
answers
45
views
Reduce size of QScrollArea to a minimum
Below is a massively stripped down code of an application I have. The application uses different QGroupBoxes for data display. The lowest QGroupBox has a QScrollArea which contains a changing (and ...
-1
votes
1
answer
95
views
Why are my Buttons overlapping in QML ColumnLayout?
It seems there is something pretty fundamental I don't understand about QML layouts.
I've got the following QML.
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
ApplicationWindow {
...
2
votes
1
answer
335
views
How do I break layout in Qt by using code instead of Design mode?
So, when I am using Design mode in Qt Creator I can break central widget's layout simply by right-clicking on it and choosing "Break Layout" option:
But how can I do it from the code?
...
0
votes
1
answer
47
views
QtQuick Layouts: Why don't the width and height settings affect anything inside the ColumnLayout?
I've been working with QtQuick and have encountered an issue I can't quite wrap my head around.
In the example below, I've set the width and height of the Rectangle directly, expecting it to fill 10% ...
0
votes
0
answers
118
views
Layout algorithm for tree graph in Qt
I'm working on a family tree graph where the individual nodes are objects of a class derived from QGraphicsObject painted on the scene and I'm placing each node's parents centered above it, its spouse ...
0
votes
1
answer
168
views
QT QML how to break out a given layout
I have a default layout with a header, footer, left and right margin and a content area - all rectangles with fixed sizes and positions.
Depending on the program, the content area is dynamic divided ...
0
votes
2
answers
189
views
QT QML what is the best approach for static layout
I need a complete static layout with fixed positions and sizes like this.
Do I need a grid or column layout with relative positioning or can I work without any layout (only with x and y positioning ...
0
votes
1
answer
155
views
How to create a custom grip to resize widgets inside a layout?
I created a label to behave as a grip, to be able to 'customize' the height of widgets that are inside of a QGridLayout.
To get the resize working correctly with any kind of widget size, I needed to ...
1
vote
1
answer
381
views
Qt Designer: how to remove empty space around QTableWidget
The Question is like said in the Title, how can i remove the Empty Space in the QTableWidget in the QT Designer?
Here is a screenshot of it:
More important is the white space below and not the whie ...
-1
votes
2
answers
447
views
Change QMainWindow layout programmatically
I am using Qt Creator to build a main MainWindow and populate it with all my widgets. I do not set any MainWindow layout in this stage (like "Lay out in a Grid" or "Lay out Horizontally&...
0
votes
2
answers
384
views
PyQt5 - Items added to custom layout have different size if they are added after QWidget.show() has been called
I am trying to add items to a FlowLayout dynamically and I have stumbled upon a bug that is really annoying.
When I add items before calling the show() method of the parent widget, they do not have ...
1
vote
1
answer
2k
views
Change the thickness of HLine/VLine in Qt Designer
When I am trying to develop a simple UI, to make a visible separation between widgets I decided to use lines. I could use them, but when I try to change the thickness of them it didn't work. And also ...