Skip to content

QIcon will lack .on-left class if QBtn uses slot instead of label #17870

Discussion options

You must be logged in to vote

From a framework perspective, when using slots then "all bets are off". It could be anything. We can't automate the styling. But you can, since you are the one defining the content of the button. So add the needed spacing yourself. Our recommendation (but not a strict one) is to either use icon+label props or the slot where you define whatever you want in there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants