国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁(yè) > news >正文

rust做網(wǎng)站微商引流被加方法精準(zhǔn)客源

rust做網(wǎng)站,微商引流被加方法精準(zhǔn)客源,歐美做視頻網(wǎng)站有哪些,臨沂市住房城鄉(xiāng)建設(shè)委官方網(wǎng)站目標(biāo)功能&#xff1a; (1)按下btn&#xff0c;彈出綠色頁(yè)面。 (2)按下btn2,綠色頁(yè)面隱藏。 (3)按下左邊余下的區(qū)域&#xff0c;綠色頁(yè)面也隱藏。 (4)平滑地顯示和隱藏 效果&#xff1a; form.h #ifndef FORM_H #define FORM_H#include <QWidget>namespace Ui { class…

目標(biāo)功能:

(1)按下btn,彈出綠色頁(yè)面。

?(2)按下btn2,綠色頁(yè)面隱藏。

?(3)按下左邊余下的區(qū)域,綠色頁(yè)面也隱藏。

(4)平滑地顯示和隱藏

效果:

?

?form.h

#ifndef FORM_H
#define FORM_H#include <QWidget>namespace Ui {
class Form;
}class Form : public QWidget
{Q_OBJECTpublic:explicit Form(QWidget *parent = nullptr);~Form();private slots:void on_pushButton_clicked();private:Ui::Form *ui;
signals:void begin_move();
};#endif // FORM_H

?form.cpp

#include "form.h"
#include "ui_form.h"Form::Form(QWidget *parent) :QWidget(parent),ui(new Ui::Form)
{ui->setupUi(this);
}Form::~Form()
{delete ui;
}void Form::on_pushButton_clicked()
{emit begin_move();
}

?widget.h

#ifndef WIDGET_H
#define WIDGET_H#include <QWidget>
#include "form.h"
#include <QPropertyAnimation>
#include <QMouseEvent>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACEclass Widget : public QWidget
{Q_OBJECTpublic:Widget(QWidget *parent = nullptr);~Widget();
protected:void mousePressEvent(QMouseEvent *event) override;bool eventFilter(QObject *obj,QEvent *event) override;
private slots:void on_pushButton_clicked();
private:Ui::Widget *ui;Form *f;QPropertyAnimation *animation,*animation1;bool flag;bool isShow;
};
#endif // WIDGET_H

widget.cpp?

#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
#include <QEvent>#pragma execution_character_set("utf-8")
Widget::Widget(QWidget *parent): QWidget(parent), ui(new Ui::Widget)
{ui->setupUi(this);f=new Form(this);f->hide();flag=1;isShow=0;ui->pushButton_2->installEventFilter(this);connect(f,&Form::begin_move,this,[=](){if(isShow == 1){animation1->start();isShow=0;}});
}Widget::~Widget()
{delete ui;
}void Widget::mousePressEvent(QMouseEvent *event)
{if(event->button()==Qt::LeftButton){qDebug()<<"按下了鼠標(biāo)左鍵";qDebug()<<event->pos();if(isShow == 1){animation1->start();isShow=0;}}
}bool Widget::eventFilter(QObject *obj, QEvent *event)
{if(obj==ui->pushButton_2){if(event->type() == QEvent::MouseButtonPress){qDebug()<<"按下按鈕";QMouseEvent * me =static_cast<QMouseEvent *>(event);if(me->button() & Qt::LeftButton){qDebug()<<"按下左鍵";if(isShow == 1){animation1->start();isShow=0;}}return false;}}return QWidget::eventFilter(obj,event);
}void Widget::on_pushButton_clicked()
{if(flag==1){flag=0;f->resize(300,height());f->move(width(),0);f->show();animation = new QPropertyAnimation(f,"pos");animation->setDuration(1000);  //設(shè)置動(dòng)畫完成的時(shí)間長(zhǎng)度animation->setStartValue(QPoint(width(),0)); //設(shè)置動(dòng)畫的開始值animation->setEndValue(QPoint(width()-f->width(),0)); //設(shè)置動(dòng)畫的結(jié)束值animation1 = new QPropertyAnimation(f,"pos");animation1->setDuration(1000);  //設(shè)置動(dòng)畫完成的時(shí)間長(zhǎng)度animation1->setStartValue(QPoint(width()-f->width(),0)); //設(shè)置動(dòng)畫的開始值animation1->setEndValue(QPoint(width(),0)); //設(shè)置動(dòng)畫的結(jié)束值}animation->start(); //啟動(dòng)動(dòng)畫isShow=1;
}

?

http://m.aloenet.com.cn/news/39625.html

相關(guān)文章:

  • 如何建設(shè)成為營(yíng)銷網(wǎng)站百度客服電話24小時(shí)人工服務(wù)熱線
  • 向日葵域名怎么做網(wǎng)站成都網(wǎng)站搭建優(yōu)化推廣
  • 手機(jī)動(dòng)態(tài)網(wǎng)站開發(fā)教程網(wǎng)絡(luò)營(yíng)銷的四大特點(diǎn)
  • 如何做網(wǎng)站本地服務(wù)器嗎廣告投放策略
  • 江蘇省建設(shè)人才網(wǎng)站軟文文案案例
  • 蘭州新站seo如何找推廣平臺(tái)
  • 假網(wǎng)站怎么做呢百度信息流投放技巧
  • 怎么提高網(wǎng)站曝光武漢seo優(yōu)化服務(wù)
  • 高能建站系統(tǒng)怎么收費(fèi)查詢網(wǎng)站流量的網(wǎng)址
  • 網(wǎng)站備案沒公司網(wǎng)絡(luò)口碑營(yíng)銷的成功案例
  • 主流跨境電商平臺(tái)有哪些?山東服務(wù)好的seo
  • 做酒店網(wǎng)站的公司百度一下子就知道了
  • 個(gè)人網(wǎng)站怎么做視頻人工智能培訓(xùn)心得
  • 北京網(wǎng)頁(yè)制作網(wǎng)站搜索引擎網(wǎng)站優(yōu)化推廣
  • 專用主機(jī)網(wǎng)站建設(shè)企業(yè)郵箱域名
  • 鹽城網(wǎng)站建設(shè)流程百度在線使用網(wǎng)頁(yè)版
  • WordPress 升級(jí) php蘇州百度快速排名優(yōu)化
  • 頭條號(hào)可以做網(wǎng)站鏈接嗎最近的新聞大事10條
  • 中華人民共和國(guó)城鄉(xiāng)建設(shè)部網(wǎng)站百度打廣告收費(fèi)表
  • 網(wǎng)站的欄目關(guān)鍵詞常用的網(wǎng)絡(luò)推廣方法
  • 有哪些好用的設(shè)計(jì)網(wǎng)站有哪些內(nèi)容培訓(xùn)心得體會(huì)怎么寫
  • 好看的中文網(wǎng)站設(shè)計(jì)百度一下首頁(yè)登錄入口
  • 各種類型網(wǎng)站建設(shè)獨(dú)立aso關(guān)鍵詞優(yōu)化計(jì)劃
  • 鄭州市域名服務(wù)公司網(wǎng)絡(luò)公司seo教程
  • 網(wǎng)站后端技術(shù)有哪些運(yùn)營(yíng)商大數(shù)據(jù)精準(zhǔn)營(yíng)銷獲客
  • 做網(wǎng)站找誰(shuí)百度服務(wù)中心投訴
  • 網(wǎng)站的思維導(dǎo)圖怎么做線上怎么做推廣和宣傳
  • 做app推廣上哪些網(wǎng)站嗎2022年今天新聞聯(lián)播
  • 服務(wù)周到的做網(wǎng)站自媒體軟文發(fā)布平臺(tái)
  • 織夢(mèng)手機(jī)網(wǎng)站怎么安裝教程視頻在線網(wǎng)絡(luò)培訓(xùn)平臺(tái)