zoukankan      html  css  js  c++  java
  • QLabel

    The QLabel widget provides a text or image display.

    Content  Setting
    Plain text  Pass a QString to setText().
    Rich text Pass a QString that contains rich text to setText().
    A pixmap Pass a QPixmap to setPixmap().
    A movie Pass a QMovie to setMovie().
    A number  Pass an int or a double to setNum(), which converts the number to plain text.
    Nothing  The same as an empty plain text. This is the default. Set by clear().

     

    Header: #include <QLabel>
    qmake: QT += widgets
    Inherits: QFrame

    插入图片:

     

    插入动态图片:

        QMovie *movie = new QMovie("../cruiseSystem/images/2015111016272032815.gif");
        ui->label->setMovie(movie);
        QSize size = ui->label->size();
        movie->setScaledSize(size);
        movie->start();

     

  • 相关阅读:
    jquery 不支持$.browser
    js 双向绑定
    css3 省略号
    js生成txt文件
    Browser-sync
    Generator & yield write in sync way
    Charles
    缓动函数与动画
    让Safari使用Chrome的代理
    React 同构
  • 原文地址:https://www.cnblogs.com/codelu/p/5016458.html
Copyright © 2011-2022 走看看