• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::
            @import url(http://m.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);  

            void Widget::paintEvent(QPaintEvent *) {
                QPainter painter(this);
                painter.translate(width() / 2, height() / 2);
                painter.setRenderHint(QPainter::Antialiasing);
                painter.setPen(Qt::transparent);
                painter.fillRect(-width(), -height(), width() * 2, height() * 2, Qt::gray);

                int radius = 100;

                // 外邊框
                QLinearGradient lg1(0, -radius, 0, radius);
                lg1.setColorAt(0, QColor(255, 255, 255));
                lg1.setColorAt(1, QColor(166, 166, 166));
                painter.setBrush(lg1);
                painter.drawEllipse(-radius, -radius, radius << 1, radius << 1);

                // 內(nèi)邊框
                radius -= 13;
                QLinearGradient lg2(0, -radius, 0, radius);
                lg2.setColorAt(0, QColor(155, 155, 155));
                lg2.setColorAt(1, QColor(255, 255, 255));
                painter.setBrush(lg2);
                painter.drawEllipse(-radius, -radius, radius << 1, radius << 1);

                // 內(nèi)部的圓
                radius -= 4;
                QRadialGradient rg(0, 0, radius);
                rg.setColorAt(0, QColor(245, 0, 0));
                rg.setColorAt(0.6, QColor(210, 0, 0));
                rg.setColorAt(1, QColor(140, 0, 0));
                painter.setBrush(rg);
                painter.drawEllipse(-radius, -radius, radius << 1, radius << 1);

                // 高光
                radius -= 3;
                QPainterPath path;
                path.addEllipse(-radius, -radius - 2, radius << 1, radius << 1);
                QPainterPath bigEllipse;

                radius *= 2;
                bigEllipse.addEllipse(-radius, -radius + 140, radius << 1, radius << 1);
                path -= bigEllipse;

                QLinearGradient lg3(0, -radius / 2, 0, 0);
                lg3.setColorAt(0, QColor(255, 255, 255, 220));
                lg3.setColorAt(1, QColor(255, 255, 255, 30));
                painter.setBrush(lg3);
                painter.drawPath(path);
            }
            posted on 2013-08-07 07:32 逛奔的蝸牛 閱讀(3311) 評論(8)  編輯 收藏 引用 所屬分類: Qt

            評論

            # re: Qt:繪制帶高光的按鈕[未登錄] 2013-08-07 21:39 Tom
            哇,這效果真炫!!  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2013-08-27 11:15 Corey
            highlight  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2014-04-14 09:57 Friv 10
            感謝碼  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2014-11-18 15:07 friv4school
            哇,這效果真炫  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2015-09-07 21:37 Kizi 10
            它給了我很多有用的信息。非常感謝  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2015-09-19 22:14 Friv 5
            我很喜歡你的文章,我希望你將有很多項或更多  回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2016-01-05 15:09 Descargar Geometry Dash
            Posts shared useful information and meaningful life, I'm glad to be reading this article and hope to soon learn the next article. thank you
              回復(fù)  更多評論
              

            # re: Qt:繪制帶高光的按鈕 2016-01-05 15:15 Agar
            This is an informative post review. I am so pleased to get this post article and nice information. I was looking forward to get such a post which is very helpful to us. A big thank for posting this article in this website. Keep it up.
              回復(fù)  更多評論
              

            久久精品国产亚洲AV无码麻豆 | 99久久精品免费| 久久亚洲日韩精品一区二区三区| 少妇久久久久久被弄高潮| 99久久精品国产免看国产一区| 伊人热人久久中文字幕| 亚洲国产成人久久综合区| 久久亚洲私人国产精品| 性高湖久久久久久久久AAAAA| 日韩乱码人妻无码中文字幕久久 | 久久人人爽人人爽人人片av高请| 国产精品久久国产精品99盘| 久久人人超碰精品CAOPOREN| 久久99热只有频精品8| 欧美性猛交xxxx免费看久久久| 国产精品美女久久久m| 亚洲乱码日产精品a级毛片久久| 99久久国语露脸精品国产| 亚洲天堂久久久| 色综合久久久久| 精品久久久久久无码中文字幕一区 | 久久se精品一区精品二区| 久久精品国产99久久久古代| 久久久久这里只有精品| 国产精品久久成人影院| 精品蜜臀久久久久99网站| 久久人人爽人人人人爽AV| 人人狠狠综合久久亚洲| 99久久婷婷国产一区二区| 99久久国产热无码精品免费| 无遮挡粉嫩小泬久久久久久久| 亚洲乱码日产精品a级毛片久久| 精品乱码久久久久久夜夜嗨| 国产成人精品久久亚洲高清不卡 | 久久久噜噜噜久久熟女AA片| 久久综合综合久久综合| 蜜臀av性久久久久蜜臀aⅴ麻豆| 777午夜精品久久av蜜臀| 亚洲国产精品无码成人片久久| 伊人久久大香线蕉亚洲| 一本色道久久88精品综合|