qt 滑屏翻页效果C++程序

上传者: deng_hnu | 上传时间: 2011-08-05 00:00:00 | 文件大小: 12KB | 文件类型: rar
qt 滑屏翻页效果C++程序 #ifndef PICTUREFLOW_H #define PICTUREFLOW_H #include class PictureFlowPrivate; /*! Class PictureFlow implements an image show widget with animation effect like Apple's CoverFlow (in iTunes and iPod). Images are arranged in form of slides, one main slide is shown at the center with few slides on the left and right sides of the center slide. When the next or previous slide is brought to the front, the whole slides flow to the right or the right with smooth animation effect; until the new slide is finally placed at the center. */ class PictureFlow : public QWidget { Q_OBJECT Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor) Q_PROPERTY(QSize slideSize READ slideSize WRITE setSlideSize) Q_PROPERTY(int slideCount READ slideCount) Q_PROPERTY(int centerIndex READ centerIndex WRITE setCenterIndex) public: enum ReflectionEffect { NoReflection, PlainReflection, BlurredReflection }; /*! Creates a new PictureFlow widget. */ PictureFlow(QWidget* parent = 0); /*! Destroys the widget. */ ~PictureFlow(); /*! Returns the background color. */ QColor backgroundColor() const; /*! Sets the background color. By default it is black. */ void setBackgroundColor(const QColor& c); /*! Returns the dimension of each slide (in pixels). */ QSize slideSize() const; /*! Sets the dimension of each slide (in pixels). */ void setSlideSize(QSize size); /*! Returns the total number of slides. */ int slideCount() const; /*! Returns QImage of specified slide. */ QImage slide(int index) const; /*! Returns the index of slide currently shown in the middle of the viewport. */ int centerIndex() const; /*! Returns the effect applied to the reflection. */ ReflectionEffect reflectionEffect() const; /*! Sets the effect applied to the reflection. The default is PlainReflection.

文件下载

资源详情

[{"title":"( 4 个子文件 12KB ) qt 滑屏翻页效果C++程序","children":[{"title":"pictureflow","children":[{"title":"pictureflow-0.1.0","children":[{"title":"pictureflow-qt","children":[{"title":"main.cpp <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"pictureflow.h <span style='color:#111;'> 4.77KB </span>","children":null,"spread":false},{"title":"pictureflow.pro <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"pictureflow.cpp <span style='color:#111;'> 28.34KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • OneOnce :
    效果还行!可以参考下
    2020-05-08
  • zzx111319cain :
    运行出来什么都没有
    2016-11-08
  • 没有啥的昵称 :
    还可以,类似图片浏览的一部分功能
    2015-10-22
  • sl91wxl :
    效果还行!可以参考下
    2015-03-16
  • freedheart618 :
    不能翻页,或者我没找到方法,谁知道的话,可以分享一下
    2015-01-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明