Hi Everybody, I have a QFrame derived widget that is styled by a global stylesheet that sets padding, border width, etc. When I know the size of the contents, what do I pass as ContentsType to get the adjusted size to use as minimumSizeHint?
Using style()->sizeFromContents( CT_ToolButton, nullptr, contentsSize, this ) almost works, but it returns values that are several pixels too big. Regards, Tony _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest