QIcon will lack .on-left class if QBtn uses slot instead of label #17870
-
This screwes up the rendering of the content because if label is used on the button, the result is Is that a bug or is this intended outcome? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.