Tianchi  v0.0.2 build 20130701
C++ library for Qt with VC & mingW
Public 类型 | Public 槽 | 信号 | Public 成员函数 | Protected 成员函数 | 属性 | 所有成员列表
TcMarqueeLabel类 参考

跑马灯类MarqueeLabel,点击时自动打开网址 更多...

#include <tcmarqueelabel.h>

类 TcMarqueeLabel 继承关系图:

Public 类型

enum  Direction { RightToLeft = 0, BottomToTop = 1 }
 

Public 槽

void reset ()
 停止移动并且复位位置为0 更多...
 
void setActive (bool active)
 设置运行状态 更多...
 
void setInterval (int msec)
 设置每移动一像素所需时间 更多...
 
void start ()
 启动运行 setActive(bool active), stop()
 
void stop ()
 停止运行 更多...
 
void setDirection (Direction direciton)
 设置移动方向 更多...
 

信号

void intervalChanged (int interval)
 interval属性变化时发出此信号
 
void activeChanged (bool active)
 active属性变化时发出此信号
 
void directionChanged (Direction direction)
 direction属性变化时发出错信号
 

Public 成员函数

 TcMarqueeLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 
 TcMarqueeLabel (const QString &text, QWidget *parent=0, Qt::WindowFlags f=0)
 
int interval () const
 返回interval
 
bool isActive () const
 返回当前状态
 
Direction direction () const
 
void setAlignment (Qt::Alignment align)
 

Protected 成员函数

virtual void enterEvent (QEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 

属性

Direction direction
 
int interval
 设置每移动一像素所需时间(毫秒)
 
bool active
 设置是否启动移动状态
 
Qt::Alignment alignment
 

详细描述

跑马灯类MarqueeLabel,点击时自动打开网址

作者
XChinux XChin.nosp@m.ux@1.nosp@m.63.co.nosp@m.m
日期
2013-04-18

成员函数说明

void TcMarqueeLabel::reset ( )
slot

停止移动并且复位位置为0

参见
stop()
void TcMarqueeLabel::setActive ( bool  active)
slot

设置运行状态

参见
start(), stop()
void TcMarqueeLabel::setDirection ( Direction  direciton)
slot

设置移动方向

参见
direction(), directionChagned(Direction direction)
void TcMarqueeLabel::setInterval ( int  msec)
slot

设置每移动一像素所需时间

参见
interval()
void TcMarqueeLabel::stop ( )
slot

停止运行

参见
setActive(bool active), start()

该类的文档由以下文件生成: