• <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>
            Cpper
            C/C++高級工程師 Android高級軟件工程師 IT集成工程師 音頻工程師 熟悉c,c++,java,c#,py,js,asp等多種語言 程序猿
            class scrollTest : public QWidget
            {
                Q_OBJECT
            public:
                scrollTest(QWidget 
            *parent = 0, Qt::WFlags flags = 0);
                
            ~scrollTest();
            private:
                
            void createWidget();
                QWidget
            * createGroupBox(const QString& title,int n);
            };

            scrollTest::scrollTest(QWidget
            * parent,Qt::WFlags flags):
            QWidget(parent,flags)
            {
                createWidget();
            }

            scrollTest::
            ~scrollTest()
            {
            }

            void scrollTest::createWidget()
            {
                resize(
            300,360);

                QGridLayout
            * gridLayout = new QGridLayout(this);
                QScrollArea
            * scrollArea = new QScrollArea(this);
                
            //scrollArea->setWidgetResizable(false);
                
            //scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
                
                QWidget
            * scrollAreaWidgetContents = new QWidget();
                
            //scrollAreaWidgetContents->setGeometry(QRect(0, 0, 380, 251));
                scrollArea->setWidget(scrollAreaWidgetContents);

                gridLayout
            ->addWidget(scrollArea, 0012);

                QSpacerItem
            * horizontalSpacer = new QSpacerItem(298,20,QSizePolicy::Expanding,QSizePolicy::Minimum);
                gridLayout
            ->addItem(horizontalSpacer, 1011);

                QPushButton
            * pushButton = new QPushButton(this);
                pushButton
            ->setText("OK");
                gridLayout
            ->addWidget(pushButton, 1111);

                QWidget
            * content = new QWidget();
                content
            ->setMinimumHeight(280);
                
            //content->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed);
                
                QVBoxLayout
            * vlayout = new QVBoxLayout(content);
                
            //scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
                vlayout->addWidget(createGroupBox("box1",3));
                vlayout
            ->addWidget(createGroupBox("box2",5));
                vlayout
            ->addStretch(1);

                scrollArea
            ->setWidget(content);
                
            //scrollArea->setFixedHeight(420);
            }

            QWidget
            * scrollTest::createGroupBox(const QString& title,int n)
            {
                QGroupBox
            * box = new QGroupBox(title);
                QVBoxLayout
            * boxlayout = new QVBoxLayout(box);
                
            for(int i=0;i<n;i++)
                    boxlayout
            ->addWidget(new QRadioButton(QString("%1").arg(i)));

                
            return box;
            }
            posted on 2014-12-04 13:54 ccsdu2009 閱讀(10969) 評論(1)  編輯 收藏 引用 所屬分類: QT編程
            Comments
             
            久久se这里只有精品| 97香蕉久久夜色精品国产 | 色偷偷888欧美精品久久久| 久久综合国产乱子伦精品免费| 国产欧美一区二区久久| 久久精品国产国产精品四凭| 国产激情久久久久久熟女老人| 国内精品九九久久久精品| 久久人妻少妇嫩草AV蜜桃| 777午夜精品久久av蜜臀| 亚洲乱亚洲乱淫久久| 一级女性全黄久久生活片免费 | 狠狠人妻久久久久久综合| 国产精品午夜久久| 99久久国产宗和精品1上映 | 99久久精品免费国产大片| 久久久久久久久66精品片| 97精品久久天干天天天按摩| 亚洲一区精品伊人久久伊人| 久久99热精品| 97久久久久人妻精品专区| 久久久亚洲欧洲日产国码是AV| 亚洲狠狠综合久久| 精品国际久久久久999波多野| 欧美成人免费观看久久| 亚洲v国产v天堂a无码久久| 亚洲国产天堂久久综合网站| 久久国产精品无码HDAV| 一本色道久久综合狠狠躁| 亚洲国产视频久久| 久久只这里是精品66| 欧美与黑人午夜性猛交久久久| 国产激情久久久久影院老熟女免费 | 99久久99久久| 国产精品久久国产精品99盘| 久久夜色精品国产欧美乱| 久久久久波多野结衣高潮| 少妇被又大又粗又爽毛片久久黑人 | 亚洲午夜精品久久久久久浪潮| a级毛片无码兔费真人久久| www.久久热.com|