Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QPixmap.loadFromData()


  public QPixmap getThumbnailPixmap(String guid) {
//    if (getThumbnails().containsKey(guid))
//      return getThumbnails().get(guid);
   
    QPixmap img = new QPixmap();
    img.loadFromData(conn.getNoteTable().getThumbnail(guid));
    if (img == null || img.isNull())
      return null;
    //getThumbnails().put(guid, img);
    return img;
  }
View Full Code Here


    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) {
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.