Results 1 to 13 of 13

Thread: QDBus and org.freedesktop.Notifications.Notify

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Nov 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default Re: QDBus and org.freedesktop.Notifications.Notify

    Big thanks but I get the wrong color.


    Qt Code:
    1. iiibiiay::iiibiiay(QImage* img){
    2. width=img->width();
    3. height=img->height();
    4. rowstride=img->bytesPerLine();
    5. hasAlpha=img->hasAlphaChannel();
    6. channels =img->isGrayscale()?1:hasAlpha?4:3;
    7. bitsPerSample=img->depth()/channels;
    8. image.append((char*)img->bits(),img->numBytes());
    9. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by TheOneRing; 23rd November 2009 at 10:12.

Similar Threads

  1. QDBus on a network
    By TMan in forum Qt Programming
    Replies: 6
    Last Post: 7th August 2009, 15:15
  2. HAL & qdbus introspection & InvalidSignature error
    By juannm in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2009, 17:59
  3. qdbus signal
    By khcbabu in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2009, 13:17
  4. Using QDBus
    By Sandip in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2008, 07:17
  5. qDBus in windows?
    By cxl2253 in forum Qt Programming
    Replies: 2
    Last Post: 15th January 2008, 07:23

Tags for this Thread

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.