您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ updatePixmap函数代码示例

51自学网 2021-06-03 09:14:10
  C++
这篇教程C++ updatePixmap函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中updatePixmap函数的典型用法代码示例。如果您正苦于以下问题:C++ updatePixmap函数的具体用法?C++ updatePixmap怎么用?C++ updatePixmap使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了updatePixmap函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: QLabel

QWaitLabel::QWaitLabel(QWidget *parent) : QLabel(parent){    setMinimumHeight(25);    outlineColor = Qt::black;    fillColor = Qt::transparent;    dir = FLY_IN;    indicatorSize = 15;    currentIndicator = 0;    indicator = CIRCLE;    // 5 indicators, 3 steps    // =  15 positions    scaleFactor = width()/14;    // hide from screen    startPos = -1 * scaleFactor;    // go out of screen    endPos = 16 * scaleFactor;    // wait at middle    waitPos = 9 * scaleFactor;    // initialize with default start position    for(int c=0; c<5; c++)        indicators.push_back(startPos);    connect(&timer, SIGNAL(timeout()), this, SLOT(updatePixmap()));    updatePixmap();    timer.start(MID);}
开发者ID:minhazul-haque,项目名称:QWaitLabel,代码行数:31,


示例2: info

void SvgImage::setSource(const QString &source){    QDeclarativeContext* context = QDeclarativeEngine::contextForObject( this );    QString baseDir;    if ( context )    {        QFileInfo info( context->baseUrl().path() );        baseDir = info.path();    }    m_source = baseDir+ "/"+ source;    QFile file( m_source );    //qDebug("SvgImage: setSource: opening %s ...", m_source.toAscii().constData() );    if ( file.open( QFile::ReadOnly ) )    {        m_svgDocument.setContent( file.readAll() );        updatePixmap();    }    else    {        m_source = ":" + m_source;        file.setFileName( m_source );        if ( file.open( QFile::ReadOnly ) )        {            m_svgDocument.setContent( file.readAll() );            updatePixmap();        }        else            qDebug("SvgImage: setSource: %s not found!", m_source.toAscii().constData() );    }}
开发者ID:jordonwu,项目名称:qtquick_demo,代码行数:30,


示例3: disconnect

void CardInfoPicture::setCard(CardInfo *card){    if (info)        disconnect(info, 0, this, 0);    info = card;    connect(info, SIGNAL(pixmapUpdated()), this, SLOT(updatePixmap()));    updatePixmap();}
开发者ID:ideocl4st,项目名称:Cockatrice,代码行数:9,


示例4: gConfItem

LockScreenBackgroundPixmap::LockScreenBackgroundPixmap(const QString &gConfKey) :    gConfItem(new MGConfItem(gConfKey, this)),    pixmap(NULL),    pixmapFromTheme(false){    updatePixmap();    connect(gConfItem, SIGNAL(valueChanged()), this, SLOT(updatePixmap()));}
开发者ID:CODeRUS,项目名称:unrestricted-system-ui,代码行数:9,


示例5: disconnect

void CardInfoPicture::setCard(CardInfoPtr card){    if (info) {        disconnect(info.data(), nullptr, this, nullptr);    }    info = card;    if (info) {        connect(info.data(), SIGNAL(pixmapUpdated()), this, SLOT(updatePixmap()));    }    updatePixmap();}
开发者ID:Cockatrice,项目名称:Cockatrice,代码行数:14,


示例6: brightnessRange

void CaptureWgt::slotFrameReady(){    pd->video->frame( pd->img );    if ( pd->ui.brightnessRange->isChecked() )        brightnessRange();    updatePixmap();}
开发者ID:z80,项目名称:chassis,代码行数:7,


示例7: fillBuffer

void rviewOSectionImage::childMouseEvent(wxWindow *child, wxMouseEvent &mevt){    unsigned int i;    for (i=0; i<numSections; i++)    {        if (child == (wxWindow*)(sliders[i]))        {            float mx, my;            unsigned int newSect;            mevt.Position(&mx, &my);            if (sliders[i]->PositionInWell(mx, my))                newSect = i;            else                newSect = numSections + 1;            if (newSect != currentSection)            {                currentSection = newSect;                fillBuffer();                updatePixmap(imgData, imgData);            }            break;        }    }    // pass on event    rviewRenderImage::childMouseEvent(child, mevt);}
开发者ID:bangph,项目名称:rasdaman,代码行数:29,


示例8: cancel

void QDragManager::startAsyncDrag(QDrag *o){//     if (object == o || !o || !o->source()) // TODO//          return Qt::IgnoreAction;    if (object) {        cancel();        qApp->removeEventFilter(this);        beingCancelled = false;    }    object = drag_object = o;    dragObjectRetained = o;    qt_qws_dnd_deco = new QShapedPixmapWidget();    oldstate = Qt::NoModifier; // #### Should use state that caused the drag//    drag_mode = mode;    willDrop = false;    updatePixmap();    updateCursor();    restoreCursor = true;    object->d_func()->target = 0;    qApp->installEventFilter(this);    global_accepted_action = Qt::CopyAction;#ifndef QT_NO_CURSOR    qApp->setOverrideCursor(Qt::ArrowCursor);    restoreCursor = true;    updateCursor();#endif    qt_qws_dnd_dragging = true;}
开发者ID:tsuibin,项目名称:emscripten-qt,代码行数:34,


示例9: QWidget

PhraseWidget::PhraseWidget(Phrase* phrase,QWidget *parent)    : QWidget(parent) {    m_phrase        = phrase;    m_phraseEditor  = new PhraseEditor(m_phrase);    m_refreshButton = new QToolButton(this);    m_name          = new QLabel(m_phrase->name(),this);    m_scrollArea    = new QScrollArea(this);    m_pixmap        = new QLabel();    m_refreshButton->setIcon(QIcon::fromTheme("accessories-text-editor"));    m_name->setFixedWidth(100);    m_scrollArea->setWidget(m_pixmap);    m_scrollArea->setWidgetResizable(true);    m_scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);    m_scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);    if(m_phrase->image())        m_pixmap->setPixmap(QPixmap::fromImage(*m_phrase->image()));    QHBoxLayout* layout = new QHBoxLayout(this);    layout->addWidget(m_name);    layout->addWidget(m_refreshButton);    layout->addWidget(m_scrollArea);    connect(m_phrase,SIGNAL(previewChanged()),this,SLOT(updatePixmap()));    connect(m_refreshButton,SIGNAL(clicked()),this,SLOT(openEditor()));}
开发者ID:mturley,项目名称:arranger,代码行数:32,


示例10: QWidget

SeanPptProgressWdg::SeanPptProgressWdg(QWidget *parent)	: QWidget(parent){	ui.setupUi(this);	QFile qssFile(":/qss/setting.qss");	QString qss;	qssFile.open(QFile::ReadOnly);	if(qssFile.isOpen())	{  		qss = QString(qssFile.readAll());		this->setStyleSheet(qss);		qssFile.close();	}	index = 1;	QPixmap pixmap(QString(":/setting/setting/00900"));	ui.imageLabel->setPixmap(pixmap);	ui.imageLabel->setScaledContents(true);	timer = new QTimer(this);	timer->setInterval(100);	connect(timer, SIGNAL(timeout()), this,SLOT(updatePixmap())); 	timer->start();}
开发者ID:ACEZLY,项目名称:openmeeting2,代码行数:25,


示例11: qDebug

void QDragManager::updateCursor(){#ifdef DEBUG_QDND_WIN    qDebug( "QDragManager::updateCursor()" );#endif    if ( !noDropCursor ) {        stdNoDropCursor = new QCursor( ForbiddenCursor );        if ( !pm_cursor[ 0 ].isNull() )            stdMoveCursor = new QCursor( pm_cursor[ 0 ], 0, 0 );        if ( !pm_cursor[ 1 ].isNull() )            stdCopyCursor = new QCursor( pm_cursor[ 1 ], 0, 0 );        if ( !pm_cursor[ 2 ].isNull() )            stdLinkCursor = new QCursor( pm_cursor[ 2 ], 0, 0 );    }    if ( !object->pixmap().isNull() ) {        updatePixmap();    } else {        delete noDropCursor;        delete moveCursor;        delete copyCursor;        delete linkCursor;        if ( usePixmapCursors ) {            usePixmapCursors = false;        }        noDropCursor = new QCursor ( *stdNoDropCursor );        moveCursor = new QCursor ( *stdMoveCursor );        copyCursor = new QCursor ( *stdCopyCursor );        linkCursor = new QCursor ( *stdLinkCursor );    }}
开发者ID:Miguel-J,项目名称:eneboo-core,代码行数:32,


示例12: QMainWindow

MainWindow::MainWindow(QWidget *parent)    : QMainWindow(parent){    undoStack = new QUndoStack(this);    createActions();    createMenus();    createToolBars();    createStatusBar();    createCentralWidget();    createDockWindows();#ifndef QT_NO_DEBUG    createUndoView();#endif    connect(pipelineWidget, SIGNAL(sourceCodeChanged(QString)),            codeWidget, SLOT(setPlainText(QString)));    connect(pipelineWidget, SIGNAL(outputPixmapChanged(QPixmap)),            imageWidget, SLOT(updatePixmap(QPixmap)));    setWindowTitle("Prototyping Toolkit for Image Processing");    loadImageFile(":/Images/lena.jpg");    resize(QGuiApplication::primaryScreen()->availableSize() * 3 / 5);}
开发者ID:xiaomailong,项目名称:prototyping_toolkit_for_image_processing,代码行数:27,


示例13: updatePixmap

void SvgImage::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *){    if ( m_updateNeeded )    {        updatePixmap( m_resizePixmap );        m_resizePixmap = false;    }    QRectF target(0, 0, m_pixmap.width(), m_pixmap.height());    if (m_startX != -1) {        target.setX(m_startX);    }    if (m_startY != -1) {        target.setY(m_startY);    }    if (m_endX != -1) {        target.setWidth(m_endX);    }    if (m_endY != -1) {        target.setHeight(m_endY);    }    painter->drawPixmap( target, m_pixmap, target );}
开发者ID:jordonwu,项目名称:qtquick_demo,代码行数:25,


示例14: updatePixmap

// Background mask methods.void qsynthSystemTray::setBackground ( const QColor& background ){	// Set background color, now.	m_background = background;	updatePixmap();}
开发者ID:rncbc,项目名称:qsynth,代码行数:8,


示例15: tileHeight

void ScaledImagePlane::ensureUpToDate(unsigned int tileX, unsigned int tileY,                            PixmapTile* tile){    ImageTile& imageTile = tiles.at(tileX, tileY);    //Create the image if need be.    if (imageTile.image.isNull())    {        imageTile.image = parent->format.makeImage(tileWidth (tileX),                                                   tileHeight(tileY));        ImageManager::imageCache()->addEntry(&imageTile);        std::memset(imageTile.versions, 0, Tile::TileSize);    }    else ImageManager::imageCache()->touchEntry(&imageTile);    //Pull in updates to the image.    for (unsigned int line = 0; line < tileHeight(tileY); ++line)    {        int origLine = yScaleTable[line + tileY*Tile::TileSize];        if (imageTile.versions[line] < parent->versions[origLine])        {            imageTile.versions[line] = parent->versions[origLine];            if (parent->format.depth() == 1)                scaleLoop<quint8>(&imageTile.image, xScaleTable, line,                                 parent->image, origLine, tileX, tileY);            else                scaleLoop<quint32>(&imageTile.image, xScaleTable, line,                                parent->image, origLine, tileX, tileY);        }    }    //Now, push stuff into the pixmap.    updatePixmap(tile, imageTile.image, tileX, tileY, 0, 0, imageTile.versions);}
开发者ID:vasi,项目名称:kdelibs,代码行数:34,


示例16: QWidget

AlbumWidget::AlbumWidget(QWidget* parent) : QWidget(parent) {    qRegisterMetaType<QImage > ("QImage");    connect(&m_cd, SIGNAL(renderedImage(QImage)),            this, SLOT(updatePixmap(QImage)));    resize(300, 300);}
开发者ID:helcl42,项目名称:Streaming,代码行数:7,


示例17: updatePixmap

// Local rectangular contents update.void qtractorMidiEditView::updateContents ( const QRect& rect ){	updatePixmap(		qtractorScrollView::contentsX(),		qtractorScrollView::contentsY());	qtractorScrollView::updateContents(rect);}
开发者ID:rncbc,项目名称:qtractor,代码行数:9,


示例18: QPixmap

void CaptureWidget::setPreview(const QImage& preview){    d->preview = preview;    d->pixmap  = QPixmap(contentsRect().size());    updatePixmap();    repaint();}
开发者ID:UIKit0,项目名称:digikam,代码行数:8,


示例19: updatePixmap

void CellItem::reset(){    m_state = KMinesState::Released;    m_hasMine = false;    m_exploded = false;    m_digit = 0;    updatePixmap();}
开发者ID:KDE,项目名称:kmines,代码行数:8,


示例20: blockSignals

void CaptureWidget::resizeEvent(QResizeEvent*){    blockSignals(true);    d->pixmap = QPixmap(contentsRect().size());    updatePixmap();    repaint();    blockSignals(false);}
开发者ID:UIKit0,项目名称:digikam,代码行数:8,


示例21: slotSelect

void KisTemplateCreateDia::slotCustom() {    d->m_default->setChecked(false);    d->m_custom->setChecked(true);    if(d->m_customFile.isEmpty())        slotSelect();    else        updatePixmap();}
开发者ID:KDE,项目名称:krita,代码行数:9,


示例22: flushSlices

void rviewOSectionImage::refreshSlices(bool force){    if (force)        flushSlices();    ensureSections();    fillBuffer();    updatePixmap(imgData, imgData);}
开发者ID:bangph,项目名称:rasdaman,代码行数:9,


示例23: setMode

// Sets the mode according to the given textual mode.void QucsTranscalc::setMode (QString _mode) {  for (int i = 0; i < MAX_TRANS_TYPES; i++) {    if (TransLineTypes[i].description == _mode) {      setMode (TransLineTypes[i].type);      updatePixmap (mode);      break;    }  }}
开发者ID:NextGenIntelligence,项目名称:qucs,代码行数:10,


示例24: QPushButton

///// constructor /////////////////////////////////////////////////////////////ColorButton::ColorButton(QWidget* parent, const char* name) : QPushButton(name, parent)/// The default constructor.{  pixmap = new QPixmap();  setColor(QColor(0, 0, 0));  connect(this, SIGNAL(resized()), this, SLOT(updatePixmap()));  connect(this, SIGNAL(clicked()), this, SLOT(selectColor()));}
开发者ID:steabert,项目名称:brabosphere,代码行数:10,


示例25: QPixmap

void ClickableLabel::setPixmap(const QString& fileName){	m_pixmap = QPixmap(fileName);	m_pixmapSize = m_pixmap.size();	this->QLabel::setPixmap(m_pixmap.scaled(this->width(), this->height(), Qt::KeepAspectRatio));	m_pixmap = *this->pixmap();	updatePixmap();}
开发者ID:CalciferLorain,项目名称:QtUtils,代码行数:10,


示例26: QLabel

Viewportal::Viewportal(QWidget *parent) :        QLabel(parent), cbType("Deuteranope"), simulate(false) {    screenX = QApplication::desktop() -> screenGeometry().width();    screenY = QApplication::desktop() -> screenGeometry().height();    setFixedSize(screenX/2,screenY);    setGeometry(QRect(screenX/2, 0, screenX, screenY));    QTimer *timer = new QTimer(this);    connect(timer, SIGNAL(timeout()), this, SLOT(updatePixmap()));    timer->start(MAX_UPDATE_INTERVAL);}
开发者ID:crabl,项目名称:ColorPortal,代码行数:12,



注:本文中的updatePixmap函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ updatePlaceholderVisibility函数代码示例
C++ updatePath函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。