• 大小: 1.11MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-05
  • 语言: 其他
  • 标签: Qt  

资源简介

学习QT的基础知识 很好的例子

资源截图

代码片段和文件信息

#include “dialog1.h“
#include “ui_dialog1.h“
#include “QDebug“

Dialog1::Dialog1(QWidget *parent) :
    QDialog(parent)
    ui(new Ui::Dialog1)
{
    ui->setupUi(this);
    d=new Dialog2;
    ui->label->setPixmap(QPixmap(“../ex10_1/pic/1.jpg“));
    x=170;
    y=100;
    ui->label->setGeometry(QRect(xy80100));

    this->move(300100);
    d->move(300420);

    d->show();

    connect(dSIGNAL(dig(char*))thisSLOT(shoe(char*)));
    connect(thisSIGNAL(di(QPoint))dSLOT(dl1(QPoint)));
    connect(dSIGNAL(a1(QPoint))thisSLOT(a(QPoint)));
}

Dialog1::~Dialog1()
{
    delete ui;
}

void Dialog1::keyPressEvent(QKeyEvent *event)
{
   if((event->key()==Qt::Key_Up)&&(y>0))
   {
       y=y-2;

   }
   else if((event->key()==Qt::Key_Down)&&(y<200))
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1836  2016-05-13 12:42  QT\ex10_1\dialog1.cpp

     文件        622  2016-05-12 21:24  QT\ex10_1\dialog1.h

     文件        727  2016-05-12 15:26  QT\ex10_1\dialog1.ui

     文件       2416  2016-05-12 21:24  QT\ex10_1\dialog2.cpp

     文件        694  2016-05-12 21:24  QT\ex10_1\dialog2.h

     文件       2220  2016-05-12 17:13  QT\ex10_1\dialog2.ui

     文件        455  2016-05-12 15:40  QT\ex10_1\ex10_1.pro

     文件      17648  2016-06-03 20:14  QT\ex10_1\ex10_1.pro.user

     文件        183  2016-05-12 17:59  QT\ex10_1\main.cpp

     文件       4436  2016-05-12 09:57  QT\ex10_1\pic\1.jpg

     文件       2281  2016-05-12 09:54  QT\ex10_1\pic\2.jpg

     文件       2522  2016-05-12 09:54  QT\ex10_1\pic\3.jpg

     文件       4260  2016-05-12 09:58  QT\ex10_1\pic\4.jpg

     文件       4525  2016-05-12 09:55  QT\ex10_1\pic\5.jpg

     文件       4525  2016-05-12 09:55  QT\ex10_1\pic\dialog1.cpp

     文件        223  2016-05-12 15:37  QT\ex10_1\pic.qrc

     文件       3815  2016-03-27 17:38  QT\ex5_1\build-ex5_1-桌面-Debug\100.jpg

     文件      18058  2016-03-27 17:37  QT\ex5_1\build-ex5_1-桌面-Debug\100.png1

     文件     881173  2016-03-27 17:59  QT\ex5_1\build-ex5_1-桌面-Debug\debug\ex5_1.exe

     文件     121799  2016-03-27 17:56  QT\ex5_1\build-ex5_1-桌面-Debug\debug\main.o

     文件       4135  2016-03-27 17:56  QT\ex5_1\build-ex5_1-桌面-Debug\debug\moc_myui.cpp

     文件     135793  2016-03-27 17:56  QT\ex5_1\build-ex5_1-桌面-Debug\debug\moc_myui.o

     文件     300578  2016-03-27 17:59  QT\ex5_1\build-ex5_1-桌面-Debug\debug\myui.o

     文件       5994  2016-03-27 10:23  QT\ex5_1\build-ex5_1-桌面-Debug\Makefile

     文件       5617  2016-03-27 10:23  QT\ex5_1\build-ex5_1-桌面-Debug\Makefile.Debug

     文件       5690  2016-03-27 10:23  QT\ex5_1\build-ex5_1-桌面-Debug\Makefile.Release

     文件      14458  2016-03-27 17:47  QT\ex5_1\build-ex5_1-桌面-Debug\ui_myui.h

     文件       3815  2016-03-27 17:38  QT\ex5_1\ex5_1\1.jpg

     文件        360  2016-03-27 10:13  QT\ex5_1\ex5_1\ex5_1.pro

     文件      17660  2016-06-03 20:14  QT\ex5_1\ex5_1\ex5_1.pro.user

............此处省略80个文件信息

评论

共有 条评论