Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Flickering of widgets when created with nullptr as parent
A Former User last edited by
I am trying to create two qwidgets and each of them have few dynamically created labels and checkboxes. The two widgets body is constructed using designer and layout is also provided here.Now when i create these widgets i provide nullptr as parent and later add them in the layout. But when i open up the the widget i can see a window for every label and check box for fraction of second and then i see in the layout. This action seems to be like flickering, and how can i avoid it. Thank you
Please show the code you are using.
simple answer: don't set a nullptr parent. Use a already hidden parent widget for example.