Results 1 to 2 of 2

Thread: how to use Qimage class

  1. #1
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default how to use Qimage class

    hi,

    i want to use the function of QImage (bool Qimage save()). wat i have to do ?
    First i have to declare this function as public in a class (available in header file) or
    i have to use this function directly in cpp file to save images as JPG format in mainwindow?? like this
    Qt Code:
    1. bool Qimage::save(filename, jpg,0)
    2. {
    3. if(isNull())
    4. {
    5. return false;
    6. }
    7. }
    To copy to clipboard, switch view to plain text mode 
    if it is worng , can u plz give me correct to implement the save function.
    Last edited by wysota; 18th April 2009 at 23:48.

  2. #2
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to use Qimage class

    In my opinion the first thing you should do is to read about C++ and next read Qt's documentation. And then ask questions here.

    Have a nice day.
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

Similar Threads

  1. Replies: 3
    Last Post: 27th December 2008, 19:34
  2. QImage extension class
    By rbp in forum Qt Programming
    Replies: 2
    Last Post: 18th November 2008, 06:55
  3. class in the class
    By baray98 in forum General Programming
    Replies: 2
    Last Post: 23rd July 2008, 07:01
  4. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  5. Replies: 2
    Last Post: 4th May 2006, 19:17

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.