1,490 questions
5
votes
2
answers
198
views
Improve implementation of a "widget tree structure" in Qt6 [closed]
Let me introduce first the problem. I will present a simplification of my QT6 project app (in C++) to not make it too difficult to read, as the original code has lots of unnecesary things for this ...
0
votes
1
answer
64
views
Display floating popup widget box on the header of a QTableView with Python and PyQt6
I'm trying to make a QTableView with Python and PyQt6 that display a popup message and posibly some tools, like filters, when you click in a header section.
I'm trying to replace an excel spreadsheet ...
2
votes
3
answers
137
views
How to enable QLabel character wrapping(Not Word Wrapping) in QWidget C++?
I tried the word Wrap option in QLabel, but it wraps second word of "Hello World" on next line when size of label shrinks, I need to wrap the single word like "Hello" on character ...
1
vote
0
answers
77
views
C++ QT Copying the objects of a QList<obj *> to another QList<obj *>
I have a QList like this
QList<media *> MyList;
Where media is an abstract class created by me. I use this list to store objects of tree different classes, all tree inherit from media. I have to ...
0
votes
0
answers
122
views
Watching GStreamer RTSP stream in QT6 Widget
I want to watch RTSP Stream in a widget in QT6, but although I specify it at the bottom of the code, it opens in a separate window called "Direct3D11 renderer", not on that qt app widget. If ...
0
votes
0
answers
90
views
Add QWidget to QWidget
In the constructor I call the following method:
void UsersManagement::loadUsers()
{
QList<User> users = getUsers();
float y = 10;
foreach(User user, users)
{
UserWidget * item = ...
1
vote
1
answer
127
views
QT QSlider stylesheet causes the rounded border to disappear
I set the QSlider in QT using the qss style, which I set at the beginning
QSlider::groove: horizontal {
background: rgb(217,221,227);
height: 14px;
border-radius: 7px;
}
QSlider::handle: ...
1
vote
0
answers
50
views
While using Pyside2 I've got : QWidget: Must construct a QApplication before a QWidget
I'm trying to re-implement the scikit-surgerytutorial01 so I exactly followed all steps indicated in the documentation and I created a virtual environment where I installed all requirements with ...
0
votes
0
answers
68
views
Qwidget elements not showing in secondary window
I am trying to open a QWidget when close even in QMainWindow is triggered. The QWidget need to stay open until the for loop gets completed. The QWidget is showing up, but the elements in the widget is ...
0
votes
1
answer
90
views
how to only get the numbers to solve an equation in qt widget?
I want to write an equation in one text edit and show the result in another. For example, in one text edit, I write:
(3x2+5x-6)
How do I only get the numbers in the equation above to solve the ...
1
vote
0
answers
88
views
Chaning QOpenGLWidget's parent from QMainWindow to QMdiSubWindow is not working properly
I am working on CAD project using Qt OpenGL and implemented views as sub views of QMdiArea.
I did detach view from QMdiArea to a new top widget(QMainWindow) using setCentralWidget and setParent ...
0
votes
0
answers
25
views
merge widget PyQt5 like chrome window tab
how to combine 2 progressbar widgets into one widget when the user drags and drops to one of the widgets? MainWindowHide window must always be hidden and only used for progressbar initiation. I want ...
0
votes
1
answer
48
views
Create a popup widget with a native shadow
I'm on KDE Plasma 6.0.2 + Wayland. I need to create a widget that inherits from QWidget with the Qt::Popup window flag set and has a natural shadow (i.e., the shadow is drawn by the window manager). ...
0
votes
0
answers
48
views
How to get a QFormLayout() next to a GLViewWidget() in a QVBoxLayout() [duplicate]
I am trying to get a QFormLayout() next to a GLViewWidget() in a QVBoxLayout() in QMainWindow() using the below code.
However, I struggle to find out how to display both at once, I can only display ...
0
votes
1
answer
236
views
How to make custom QWidget receive all key press events, even shortcuts of global actions?
In Qt 5, assume the following custom widget:
class QMeow final :
public QWidget
{
public:
explicit QMeow()
{
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
...
1
vote
1
answer
159
views
Why result is different?
I'm going to separate files on pyside6. I divided Widget and separated files in my own way, but the results are different. Why is it different?
import sys
from PySide6.QtWidgets import (
...
2
votes
0
answers
38
views
Python QWidget Controls not Showing in a Form
I have a Main GUI class, and I am attempting to open another window, I am using QWidget to inherit from. The window that opens is just a progress bar and there is a QThread timer in another class in ...
0
votes
1
answer
126
views
After stopping a video in PyQt5 QMediaPlayer, artifacts occur when the window is resized
After the video has finished playing, or the QMediaPlayer stop() method has been called, artifacts occur in place of the video widget when the window is resized.
Below is a screen shot of the ...
-1
votes
1
answer
202
views
QT Creator ListWidget does not display the items correctly
I created a separate class Card, that is a widget. And in class main window I have a listWidget.I'm trying to add the card instances as items. Once the number of cards exceed the size of listWidget, ...
0
votes
1
answer
185
views
Left alignment of tab names
In PyQt5, it is not possible to create tabs on the left and arrange them horizontally by aligning them vertically. You can place it only on the left, but then the tabs will be vertically arranged.
I ...
0
votes
1
answer
133
views
Qt 6.5.3 : Can't change QWidget position
I have problem with my QWidget window which I can't update position.
I don't use the Ui tool.
I've tried:
QRect screenGeometry;
int x;
int y;
...
1
vote
0
answers
77
views
How to make QPolarChart angular axis counterclockwise?
By default QPolarChart has clockwise angular axis:
I need to make phasor diagram widget, but on phasor diagrams angles must go counterclockwise, phasors must rotate like that:
I didn't find method ...
0
votes
1
answer
1k
views
Why can't I change the window icon on a QMessageBox with setIcon in PySide6?
I have been following an online tutorial and corresponding book by Martin Fitzpatrick to get familiar with PySide6. On the topic of message boxes, it is mentioned there that we can change the icon ...
1
vote
0
answers
53
views
Splitting mainwindow.cpp into separate widgets with UI access
Currently I have a mainwindow.cpp that is getting quite large. There isn't an immediate necessity to refactor this file; this is just for readability's sake.
The current design of my project has ...
0
votes
0
answers
195
views
PyQt5 Sidebar Widget Not Collapsing as Expected
I'm developing a PyQt5 application that incorporates a sidebar widget for displaying various types of information. The sidebar is implemented using QDockWidget and QStackedLayout. I want this sidebar ...