Results 1 to 2 of 2

Thread: How to use libnotify?

  1. #1
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to use libnotify?

    When you change the volume,brightness,connect to a wireless and other things a notify is been shown.. Called libnotify.. How can i make for example an libnotify ( maybe with a push of a button ) telling hi bro.. With an icon always...
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to use libnotify?

    libnotify is a library that makes use of GTK+

    At least, you need to include the libnotify library when you link your program.
    Qt Code:
    1. LIBS += -lnotify
    To copy to clipboard, switch view to plain text mode 

    And you need to make sure the include files can be found.

    But, I guess you need to link to GTK+ too, but I don't know the correct names, probably something like -lgtk+ maybe with a version number.

    Then you need to write the notification, here's an example:
    http://manishtech.wordpress.com/2009...ith-libnotify/

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.