Results 1 to 6 of 6

Thread: How to convert QIcon to BASE64 or save it to file?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Location
    Russia, Moscow
    Posts
    35
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question How to convert QIcon to BASE64 or save it to file?

    Hi 2 all.

    Please, help.
    How I can convert QIcon to BASE64?

    UPD

    I make it in thread. And QPixmap says that it is not save to use it outside GUI thread.
    "QPixmap: It is not safe to use pixmaps outside the GUI thread"

    How?

    this is a piece of my code:

    Qt Code:
    1. QDir dir( path );
    2. foreach (QFileInfo rootDir, dir.entryInfoList() )
    3. {
    4. QIcon ico = icon.icon( rootDir );
    5. }
    To copy to clipboard, switch view to plain text mode 

    I make a threaded media-server and I will paste Icons of files to web interface. How I can do this?


    UPD 2

    Or how I can save QIcon to file?
    Last edited by Alex Snet; 26th April 2009 at 19:20. Reason: update

Similar Threads

  1. Storing/retrieving a QIcon from a database
    By KShots in forum Qt Programming
    Replies: 5
    Last Post: 1st June 2008, 02:55
  2. setIcon() - different QIcon states?
    By AaronMK in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2008, 03:10
  3. Make error with Qt Jambi 4.3.2_01
    By pamalite in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd November 2007, 12:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.