1,491 questions
1
vote
1
answer
86
views
My custom label's text is uneven when rotated
I've created a custom qlabel using pyqt, however the text is slightly uneven when rotated. I've attached a picture of this vs an unrotated label. I've tried fixing it with setRenderHint Antialiasing, ...
5
votes
2
answers
201
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 ...
1
vote
1
answer
102
views
Must construct a QApplication while it is already constructed?
Here is the code.
import sys
from PyQt6.QtWidgets import QApplication
from qpageview import View
app = QApplication(sys.argv)
view = View()
view.show()
sys.exit(app.exec())
When I run it from ...
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 ...
0
votes
0
answers
60
views
Abstraction for binding two Qt properties together with signals and slots
When using signals and slots in Qt to mirror the content of one Q_PROPERTY to another in a unidirectional way I often find myself repeating the same pattern:
Set the "target" property equal ...
2
votes
3
answers
146
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 ...
0
votes
0
answers
54
views
How to get direct access to a QWidget which is an item of a QToolBox?
I have a QToolBox which has a page, which has a QWidget and the QWidget has a QLabel. How can I access the QLabel only with direct access to the QToolBox?
QToolBox* toolBox = new QToolBox;
void ...
1
vote
0
answers
79
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
1
answer
72
views
How to properly close a QWidget created on an other thread? [OBS Source Plugin]
I am trying to make a plugin for OBS Studio that will add a custom source type object.
OBS provide a simple way to let the user display and change the source properties with the function ...
0
votes
0
answers
127
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 ...
1
vote
1
answer
69
views
What prevents this QWidget from being repositioned?
I am working on a media player (spotify clone?) and want to recreate the "meatball" menu found on songs and like the way it floats freely next to the meatball button and remains there.
My ...
0
votes
0
answers
95
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 = ...
0
votes
1
answer
91
views
How to keep QPixamp quality in QPainter::drawPixmap when QPainter::scale(x,y) is used?
I am using QWidget and its paintEvent.
Im using QPainter::scale(zoom,zoom) to scale background images on the widget.
Then I want to paint some foreground icons and keep their size the same all the ...
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: ...
0
votes
1
answer
465
views
How do I force a QWidget to be repainted?
Given the following main window implementation:
#include <QApplication>
#include "MainWindow.h"
namespace ui {
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
...