@Pl45m4 said in Custom Widget not showing in layout:
always returning QSize(width(), height()); doesn't feel like the best solution ;-)
I guess that QPushButton uses the actual text displayed (plus some padding) to calculate the size hint. QFontMetrics might help here.