原创 qt子控件焦點的切換
設置焦點的順序 [static] void QWidget::setTabOrder(QWidget *first, QWidget *second) Puts the second widget after the first w
原创 QWidget 半透明窗口解決方案
設置屬性 this->setAttribute(Qt::WA_TranslucentBackground, true); 重寫繪製函數 void ThreeSplitScreenPlaybackHoverToolBarWidge
原创 qt生成圓形頭像
廢話不說,直接貼代碼 QPixmap HeadPortraitUtil::pixmapToRound(const QPixmap &srcPixmap, int radius) { if (srcPixmap.isNull())