Sorry, I misread your original post as saying the event was not called at all.
QLabel and similar widgets have a preferred size and a size policy. They won't necessarily grow or shrink if the...
Here's the code that implements the resizeEvent method in the deriveed class, ScaleTextLabel:
void ScaleTextlabel::resizeEvent(QResizeEvent* event)
{
qDebug() << "resizing";
...
I am guessing that the layout is calling QWidget::resize() directly on your label, and that triggers a repaint of the widget. As an experiment, you could replace your custom QLabel with a custom...
d_stranz Yesterday, 17:58I have a QLabel derived objects in a layout, in a centralWidget, in a QMainWindow. I want them to resize whenever the statusBar, menuBar, or toolBar are hidden/shown. (I have code that chooses a...
davethomaspilot Yesterday, 16:12Thanks for the reply.
I have a ListView & it's delegate. I get the index in the delegate's MouseArea. Here is the code snippet of the delegate for your perusal.
Component {
id:...
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
Displaying Widgets on multiple, virtual displays (headless rpi)
29th January 2023 17:19 by davethomaspilot