Results 1 to 3 of 3

Thread: do we can't compare QIcon or QPixmap????

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Location
    Pavlodar, Kazakhstan
    Posts
    22
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: do we can't compare QIcon or QPixmap????

    No, you cannot compare QIcon's this way. There is no overloaded '==' operator for this class. You can get QPixmap from QIcon using QIcon:ixmap() function. Then in turn you can obtain QImage object from QPixmap with QPixmap::toImage() call. And finally you can compare QImage objects with '==' operator.

  2. The following user says thank you to mitro for this useful post:

    sudheer (13th May 2008)

  3. #2
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Smile Re: do we can't compare QIcon or QPixmap????

    thank q.................

    i got my solution

Similar Threads

  1. 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
  2. QPixmap and HBITMAP
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 16:24

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.