AFAIK, the layout's policies take precedence over the widgets inside it. The layout will try to honor the widgets' minimum size and size hints and size policy, but i suppose if you externally...
d_stranz Today, 18:16I've been using QtCreator for some time, but I have to admit, I really don't understand all the parameters that can be used in a layout.
For example, I have a vertical layout with three QFrames. ...
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:58Qt 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