Examples of QPixmap


Examples of com.trolltech.qt.gui.QPixmap

      QBuffer buffer = new QBuffer();
          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, type.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap

   
  // Main entry point
  public static void main(String[] args) {
    log.setLevel(Level.FATAL);
    QApplication.initialize(args);
    QPixmap pixmap = new QPixmap("classpath:cx/fbn/nevernote/icons/splash_logo.png");
    QSplashScreen splash = new QSplashScreen(pixmap);
    boolean showSplash;
   
    DatabaseConnection dbConn;
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap

           
      if (syncIcons == null) {
        syncIcons = new ArrayList<QPixmap>();
        double angle = 0.0;
        synchronizeIconAngle = 0;
          QPixmap pix = new QPixmap(iconPath+"synchronize.png");
        syncIcons.add(pix);
        for (int i=0; i<=360; i++) {
          QPixmap rotatedPix = new QPixmap(pix.size());
          QPainter p = new QPainter(rotatedPix);
            rotatedPix.fill(toolBar.palette().color(ColorRole.Button));
            QSize size = pix.size();
            p.translate(size.width()/2, size.height()/2);
            angle = angle+1.0;
            p.rotate(angle);
            p.setBackgroundMode(BGMode.OpaqueMode);
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap

    // Get a list of the notes
    while (query.next())  {
      try {
        if (query.getBlob(1) != null) {
          QByteArray data = new QByteArray(query.getBlob(1));
          QPixmap img = new QPixmap();
          if (img.loadFromData(data)) {
            img = img.scaled(Global.largeThumbnailSize);
            map.put(query.valueString(0), img);
          }
        } 
      } catch (java.lang.IllegalArgumentException e) {
        logger.log(logger.HIGH, "Error retrieving thumbnail " +e.getMessage());
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap

      QBuffer buffer = new QBuffer();
          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, type.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.