Results 1 to 2 of 2

Thread: How to use QMIME Sourse Factory

  1. #1
    Join Date
    Sep 2006
    Posts
    102
    Thanks
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default How to use QMIME Sourse Factory

    hii friends,

    can anyone please tell me how to use QMIME Source Factory ? I want to add images to the dialog. Also i want to change those images during runtime by just updating the dialog or the table in which i wish to put the images.

    A handy code would be much helpful if anybody is able to provide one.

    There are 10 kinds of people in this world. Those who understand binary, and those who dont.

    regards
    shamik

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use QMIME Sourse Factory

    Just create QMimeSourceFactory and set paths using QMimeSourceFactory::setFilePath() or add images using QMimeSourceFactory::setImage() or QMimeSourceFactory::setPixmap(). After you have filled the factory with data, you can register it using QMimeSourceFactory::addFactory().

    When you want to change the images, either use setPixmap()/setImage()/setFilePath() or unregister the factory using removeFactory() and add a new one (this way you can have two factories and you can change between them).

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.