• FindDiff_Qt找不同项目


    项目简介

    • 开发平台

      • win10
      • Qt6.6
      • msvc2022
    • 简介

      微信上有一些好玩的游戏, 找不同一种比较轻松有趣的游戏,也曾经在街机上被坑过N币, 玩了几次后,发现还是太难了,于是开始截屏放大,慢慢找,再然后就发展到截图发送到QQ的我的电脑里,用程序查找标记

      看效果:

      • 截屏的图

    在这里插入图片描述

    在这里插入图片描述

    • FindDiff_Qt Qt 版本的找不同
      • 交互性强点
      • 用 ps 2019 切片比较方便
      • 默认 qq的 “我的电脑”的目录并自动监视该目录,当有新的文件出现时,会自动加载并查找不同处,而且每次对比前会自动删除该目录下的其他jpg图片,需要注意

    源代码

    widget.h

    #pragma once
    
    #include 
    #include 
    #include 
    #include "ui_widget.h"
    
    
    namespace Ui {
    class Widget;
    }
    
    class MWidget : public QWidget
    {
        Q_OBJECT
    
    public:
        explicit MWidget(QWidget *parent = nullptr);
        ~MWidget();
    
    private slots:
        void on_pushButton_start_clicked();
        bool loadImage();
        void showImages();
        void findDifferent();
    
        void setFrameColor(QColor color);
    
        void on_pushButton_color_clicked();
    
        void on_spinBox_valueChanged(int arg1);
    
        void on_horizontalSlider_valueChanged(int value);
    
    
        void on_spinBox_x1_valueChanged(int arg1);
        void on_spinBox_y1_valueChanged(int arg1);
        void on_spinBox_x2_valueChanged(int arg1);
        void on_spinBox_y2_valueChanged(int arg1);
        void on_spinBox_w_valueChanged(int arg1);
        void on_spinBox_h_valueChanged(int arg1);
    
        void on_comboBox_currentIndexChanged(int index);
    
    public:
        Ui::Widget *ui;
    
    private:
    
        QImage srcImg , src, dst, result;
    
        int   label_src1_height;
        int   label_src2_height;
        int label_result_height;
    
        QColor frameColor = QColor("#55ffff");
        QFileSystemWatcher fwatcher;
    
        QString workPath;
    
        // QWidget interface
    protected:
        void resizeEvent(QResizeEvent *event);
    };
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64

    widget.cpp

    #include "widget.h"
    #include "qout.h"
    #include "ui_widget.h"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    MWidget::MWidget(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::Widget)
    {
        ui->setupUi(this);
        ui->label_src1->setAlignment(Qt::AlignCenter);
        ui->label_src2->setAlignment(Qt::AlignCenter);
        ui->label_result->setAlignment(Qt::AlignCenter);
        ui->pushButton_start->setFocusPolicy(Qt::StrongFocus);
        ui->pushButton_start->setFocus(Qt::TabFocusReason);
        ui->pushButton_start->setAutoFillBackground(true);
        ui->pushButton_start->setAutoDefault(true);
        //    qout << focusNextChild() << focusWidget();
        //    qout << focusNextChild() << focusWidget();
        //    qout << focusNextChild() << focusWidget();
    
        ui->frame->setAutoFillBackground(true);
        ui->frame->setMaximumWidth(200);
        setFrameColor(frameColor);
    
        workPath = QDir::fromNativeSeparators(ui->lineEdit->text());
        fwatcher.addPath(workPath);
    
        connect(&fwatcher, &QFileSystemWatcher::fileChanged,this,[](const QString &path){
            qout << path << "fileChanged";
        });
    
        connect(&fwatcher, &QFileSystemWatcher::directoryChanged,this,[this](const QString &path){
            qout << path << "directoryChanged";
            on_pushButton_start_clicked();
        });
    
        QFile file("D:/Project/qtdemos/32_opencv/FindDiff_Qt/找不同.json");  // 数据文件路径
        if(file.open(QFile::ReadOnly)) {
            auto byte = file.readAll();
            QJsonParseError JsonParseError ;
            QJsonDocument doc = QJsonDocument::fromJson(byte, &JsonParseError);
            if(JsonParseError.error)
                qout << JsonParseError.errorString();
    
            QSignalBlocker b(ui->comboBox);
            ui->comboBox->clear();
            QJsonArray docJsonArray = doc.array();
    
            for (int i = 0; i < docJsonArray.size(); ++i) {
                QJsonObject obj = docJsonArray.at(i).toObject();
                QString title = obj["title"].toString();
                int x1 = obj["x1"].toInt();
                int y1 = obj["y1"].toInt();
                int x2 = obj["x2"].toInt();
                int y2 = obj["y2"].toInt();
                int w  = obj["w"].toInt();
                int h  = obj["h"].toInt();
                QString itemTxt("%1:\tP1(%2,%3)\tP2(%4,%5)\t%6 x %7");
                itemTxt = itemTxt.arg(title).arg(x1).arg(y1).arg(x2).arg(y2).arg(w).arg(h);
                ui->comboBox->addItem(itemTxt);
    
                QVariantList list;
                list << x1 << y1 << x2 << y2 << w << h;
                ui->comboBox->setItemData(i,list);
            }
        }
    
        on_comboBox_currentIndexChanged(0);
    }
    
    MWidget::~MWidget()
    {
        delete ui;
    }
    
    void MWidget::on_pushButton_start_clicked()
    {
        auto ok = loadImage();
        if( ok )
            findDifferent();
        showImages();
    }
    
    bool MWidget::loadImage()
    {
    
        workPath = QDir::fromNativeSeparators(ui->lineEdit->text());
        qout << workPath;
        QDir dir(workPath);
        if(!dir.exists())
            return false;
    
        QStringList nameFilters;
        nameFilters << "*.jpg";
        QStringList fileNames = dir.entryList(nameFilters,QDir::Files,QDir::Name);
        qout << fileNames;
        if(fileNames.isEmpty())
            return false;
    
        QSignalBlocker block(fwatcher);
        for (int i = 0; i < fileNames.size()-1; ++i) {
            dir.remove(fileNames.at(i));
        }
    
    
        QString imageFile( dir.absoluteFilePath(fileNames.last()) );
        srcImg.load(imageFile);
    
        src = srcImg.copy(ui->spinBox_x1->value(),ui->spinBox_y1->value(),
                          ui->spinBox_w ->value(),ui->spinBox_h ->value());
        dst = srcImg.copy(ui->spinBox_x2->value(),ui->spinBox_y2->value(),
                          ui->spinBox_w ->value(),ui->spinBox_h ->value());
        //    找不同
        //    src = srcImg.copy(16,294,1096,729);
        //    dst = srcImg.copy(16,1055,1096,729);
        //    小花找不同
        //    src = srcImg.copy(119,452,465,1057);
        //    dst = srcImg.copy(588,452,465,1057);
        result = dst;
        return true;
    }
    
    void MWidget::showImages()
    {
        qout << "showImages";
        if(src.isNull())
            return ;
        ui->label_src1  ->setPixmap(QPixmap::fromImage(src)     .scaledToHeight(ui->label_src1  ->height()-ui->label_src1->frameWidth() * 2));
        ui->label_src2  ->setPixmap(QPixmap::fromImage(dst)     .scaledToHeight(ui->label_src2  ->height()-ui->label_src1->frameWidth() * 2));
        ui->label_result->setPixmap(QPixmap::fromImage(result)  .scaledToHeight(ui->label_result->height()-ui->label_src1->frameWidth() * 2));
    }
    
    void MWidget::findDifferent()
    {
        qout << "findDifferent";
        if(src.isNull())
            return ;
        QPainter painter;
        result = src;
        result = result.convertToFormat(QImage::Format_Grayscale8);
        result = result.convertToFormat(QImage::Format_RGB32);
        painter.begin(&result);
        painter.setPen(frameColor);
        for (int i = 0; i < src.width(); ++i) {
            for (int j = 0; j < src.height(); ++j) {
                QRgb srcPix = src.pixel(i,j);
                QRgb dstPix = dst.pixel(i,j);
                if ( ( qAbs( (qRed  (srcPix)  -qRed(dstPix) ) )  > ui->spinBox->value()  // 红色
                      ||qAbs( (qGreen(srcPix)-qGreen(dstPix) ) )  > ui->spinBox->value()  // 绿色
                      ||qAbs( (qBlue (srcPix)-qBlue (dstPix) ) )  > ui->spinBox->value() ) // 蓝色
                    )
                {
                    painter.drawPoint(i,j);
                }
            }
        }
        painter.end();
    }
    
    void MWidget::setFrameColor(QColor color)
    {
        auto frame = ui->frame;
        QPalette p = frame->palette();
        p.setBrush( QPalette::Window, color);
        frame->setPalette(p);
    
    }
    
    void MWidget::resizeEvent(QResizeEvent */*event*/)
    {
        if(src.isNull())
            return;
        showImages();
    }
    
    
    void MWidget::on_pushButton_color_clicked()
    {
        auto color = QColorDialog::getColor(QColor(85,255,255));
        frameColor = color;
        setFrameColor(color);
        if(src.isNull()) return;
        findDifferent();
        ui->label_result->setPixmap(QPixmap::fromImage(result)  .scaledToHeight(ui->label_result->height()-ui->label_src1->frameWidth() * 2));
    }
    
    
    void MWidget::on_spinBox_valueChanged(int arg1)
    {
        ui->horizontalSlider->setValue(arg1);
    }
    
    
    void MWidget::on_horizontalSlider_valueChanged(int value)
    {
        ui->spinBox->setValue(value);
        findDifferent();
        ui->label_result->setPixmap(QPixmap::fromImage(result)  .scaledToHeight(ui->label_result->height()-ui->label_src1->frameWidth() * 2));
    }
    
    
    void MWidget::on_spinBox_x1_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    
    }
    void MWidget::on_spinBox_x2_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    }
    void MWidget::on_spinBox_y1_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    }
    void MWidget::on_spinBox_y2_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    }
    void MWidget::on_spinBox_w_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    }
    void MWidget::on_spinBox_h_valueChanged(int arg1)
    {
        on_pushButton_start_clicked();
    }
    
    
    void MWidget::on_comboBox_currentIndexChanged(int index)
    {
        auto vars = ui->comboBox->itemData(index).value<QVariantList>();
        qout << "=======" << index << vars;
        QSignalBlocker x1( ui->spinBox_x1 );
        QSignalBlocker y1( ui->spinBox_y1 );
        QSignalBlocker x2( ui->spinBox_x2 );
        QSignalBlocker y2( ui->spinBox_y2 );
        QSignalBlocker w ( ui->spinBox_w  );
        QSignalBlocker h ( ui->spinBox_h  );
        ui->spinBox_x1->setValue(vars.at(0).toInt());
        ui->spinBox_y1->setValue(vars.at(1).toInt());
        ui->spinBox_x2->setValue(vars.at(2).toInt());
        ui->spinBox_y2->setValue(vars.at(3).toInt());
        ui->spinBox_w ->setValue(vars.at(4).toInt());
        ui->spinBox_h ->setValue(vars.at(5).toInt());
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255

    widget.ui

    
    <ui version="4.0">
     <class>Widgetclass>
     <widget class="QWidget" name="Widget">
      <property name="geometry">
       <rect>
        <x>0x>
        <y>0y>
        <width>873width>
        <height>672height>
       rect>
      property>
      <property name="minimumSize">
       <size>
        <width>0width>
        <height>300height>
       size>
      property>
      <property name="windowTitle">
       <string>Formstring>
      property>
      <layout class="QGridLayout" name="gridLayout_3">
       <item row="0" column="0">
        <widget class="QLabel" name="label_src1">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
           <horstretch>0horstretch>
           <verstretch>0verstretch>
          sizepolicy>
         property>
         <property name="minimumSize">
          <size>
           <width>400width>
           <height>300height>
          size>
         property>
         <property name="frameShape">
          <enum>QFrame::Boxenum>
         property>
         <property name="text">
          <string/>
         property>
         <property name="buddy">
          <cstring>bottomrightcstring>
         property>
        widget>
       item>
       <item row="0" column="1">
        <widget class="QLabel" name="label_result">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
           <horstretch>0horstretch>
           <verstretch>0verstretch>
          sizepolicy>
         property>
         <property name="minimumSize">
          <size>
           <width>400width>
           <height>300height>
          size>
         property>
         <property name="frameShape">
          <enum>QFrame::Boxenum>
         property>
         <property name="text">
          <string/>
         property>
        widget>
       item>
       <item row="1" column="0">
        <widget class="QLabel" name="label_src2">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
           <horstretch>0horstretch>
           <verstretch>0verstretch>
          sizepolicy>
         property>
         <property name="minimumSize">
          <size>
           <width>400width>
           <height>300height>
          size>
         property>
         <property name="frameShape">
          <enum>QFrame::Boxenum>
         property>
         <property name="text">
          <string/>
         property>
        widget>
       item>
       <item row="1" column="1">
        <widget class="QFrame" name="bottomright">
         <property name="minimumSize">
          <size>
           <width>400width>
           <height>300height>
          size>
         property>
         <property name="frameShape">
          <enum>QFrame::Boxenum>
         property>
         <layout class="QVBoxLayout" name="verticalLayout">
          <item>
           <widget class="QWidget" name="widget_2" native="true">
            <layout class="QGridLayout" name="gridLayout_2">
             <item row="0" column="0" colspan="4">
              <widget class="QComboBox" name="comboBox">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <item>
                <property name="text">
                 <string>找不同             p1(16,293)   p2(16,1055)  1096 x 729string>
                property>
               item>
               <item>
                <property name="text">
                 <string>小花找不同      p1(119,452) p2(588,452)   465 x 1057string>
                property>
               item>
              widget>
             item>
             <item row="1" column="0">
              <widget class="QLabel" name="label">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>x1string>
               property>
              widget>
             item>
             <item row="1" column="1">
              <widget class="QSpinBox" name="spinBox_x1">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>119number>
               property>
              widget>
             item>
             <item row="1" column="2">
              <widget class="QLabel" name="label_7">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>x2string>
               property>
              widget>
             item>
             <item row="1" column="3">
              <widget class="QSpinBox" name="spinBox_x2">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>588number>
               property>
              widget>
             item>
             <item row="2" column="0">
              <widget class="QLabel" name="label_2">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>y1string>
               property>
              widget>
             item>
             <item row="2" column="1">
              <widget class="QSpinBox" name="spinBox_y1">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>452number>
               property>
              widget>
             item>
             <item row="2" column="2">
              <widget class="QLabel" name="label_5">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>y2string>
               property>
              widget>
             item>
             <item row="2" column="3">
              <widget class="QSpinBox" name="spinBox_y2">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>452number>
               property>
              widget>
             item>
             <item row="3" column="0">
              <widget class="QLabel" name="label_3">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>wstring>
               property>
              widget>
             item>
             <item row="4" column="0">
              <widget class="QLabel" name="label_4">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="text">
                <string>hstring>
               property>
              widget>
             item>
             <item row="3" column="1" colspan="3">
              <widget class="QSpinBox" name="spinBox_w">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>465number>
               property>
              widget>
             item>
             <item row="4" column="1" colspan="3">
              <widget class="QSpinBox" name="spinBox_h">
               <property name="sizePolicy">
                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                 <horstretch>0horstretch>
                 <verstretch>0verstretch>
                sizepolicy>
               property>
               <property name="maximum">
                <number>2000number>
               property>
               <property name="value">
                <number>1057number>
               property>
              widget>
             item>
            layout>
           widget>
          item>
          <item>
           <widget class="QFrame" name="frame1">
            <property name="frameShape">
             <enum>QFrame::Boxenum>
            property>
            <layout class="QVBoxLayout" name="verticalLayout_2">
             <item>
              <widget class="QLineEdit" name="lineEdit">
               <property name="text">
                <string>D:\Users\Administrator\Documents\Tencent Files\xxx保密需要xxx\FileRecv\MobileFilestring>
               property>
              widget>
             item>
             <item>
              <layout class="QHBoxLayout" name="horizontalLayout">
               <item>
                <widget class="QLabel" name="label_6">
                 <property name="text">
                  <string>色差string>
                 property>
                 <property name="alignment">
                  <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenterset>
                 property>
                widget>
               item>
               <item>
                <widget class="QSlider" name="horizontalSlider">
                 <property name="value">
                  <number>20number>
                 property>
                 <property name="orientation">
                  <enum>Qt::Horizontalenum>
                 property>
                widget>
               item>
               <item>
                <widget class="QSpinBox" name="spinBox">
                 <property name="maximum">
                  <number>255number>
                 property>
                 <property name="value">
                  <number>40number>
                 property>
                widget>
               item>
              layout>
             item>
             <item>
              <layout class="QHBoxLayout" name="horizontalLayout_3">
               <item>
                <spacer name="horizontalSpacer_2">
                 <property name="orientation">
                  <enum>Qt::Horizontalenum>
                 property>
                 <property name="sizeHint" stdset="0">
                  <size>
                   <width>153width>
                   <height>20height>
                  size>
                 property>
                spacer>
               item>
               <item>
                <widget class="QFrame" name="frame">
                 <property name="minimumSize">
                  <size>
                   <width>100width>
                   <height>0height>
                  size>
                 property>
                widget>
               item>
               <item>
                <widget class="QPushButton" name="pushButton_color">
                 <property name="text">
                  <string>颜色string>
                 property>
                widget>
               item>
              layout>
             item>
             <item>
              <layout class="QHBoxLayout" name="horizontalLayout_4">
               <item>
                <spacer name="horizontalSpacer">
                 <property name="orientation">
                  <enum>Qt::Horizontalenum>
                 property>
                 <property name="sizeHint" stdset="0">
                  <size>
                   <width>278width>
                   <height>20height>
                  size>
                 property>
                spacer>
               item>
               <item>
                <widget class="QPushButton" name="pushButton_start">
                 <property name="text">
                  <string>开始string>
                 property>
                widget>
               item>
              layout>
             item>
            layout>
           widget>
          item>
         layout>
        widget>
       item>
      layout>
     widget>
     <tabstops>
      <tabstop>lineEdittabstop>
      <tabstop>horizontalSlidertabstop>
      <tabstop>spinBoxtabstop>
      <tabstop>pushButton_colortabstop>
      <tabstop>pushButton_starttabstop>
     tabstops>
     <resources/>
     <connections/>
    ui>
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
    • 370
    • 371
    • 372
    • 373
    • 374
    • 375
    • 376
    • 377
    • 378
    • 379
    • 380
    • 381
    • 382
    • 383
    • 384
    • 385
    • 386
    • 387
    • 388
    • 389
    • 390
    • 391
    • 392
    • 393
    • 394
    • 395
    • 396
    • 397
    • 398
    • 399
    • 400
    • 401
    • 402
    • 403
    • 404
    • 405
    • 406
    • 407
    • 408
    • 409
    • 410
    • 411
    • 412
    • 413
    • 414
    • 415
    • 416
    • 417
    • 418
    • 419
    • 420
    • 421
    • 422
    • 423
    • 424
    • 425
    • 426
    • 427

    配置文件

    找不同.json

    [
    	{
    		"title":"找不同",
    		"x1":16,
    		"y1":294,
    		"x2":16,
    		"y2":1055,
    		"w":1096,
    		"h":729
    	},
    	{
    		"title":"小花找不同-横向",
    		"x1":53,
    		"y1":441,
    		"x2":53,
    		"y2":1107,
    		"w":1020,
    		"h":636
    	},
    	{
    		"title":"小花找不同-竖向",
    		"x1":119,
    		"y1":452,
    		"x2":588,
    		"y2":452,
    		"w":465,
    		"h":1057
    	}
    ]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
  • 相关阅读:
    vue判断滚动条上下拉及是否在顶部
    vite + react 基本项目搭建
    jquery中的contentType和processData参数解释
    NOIP 2010 普及组初赛 第28题 过河问题
    jQuery学习:内置动画 淡出/淡入 展开/收缩 显示/隐藏
    Miracast专业术语
    学习笔记:机器学习之支持向量机(SVM)(上)
    ABB变频器使用PROFINET IO通信协议时的输入和输出介绍
    解决pycharm里import rospy报红线但是导入的系统环境有rospy的问题
    数据结构题目收录(一)
  • 原文地址:https://blog.csdn.net/hitzsf/article/details/134090397