我想在 QPushButton 上設置一個圖像, QPushButton 的大小應該取決於圖像的大小。 ... update(); } QSize sizeHint() const { return m_pixmap.size(); } protected: ...
確定! 回上一頁