Results 1 to 8 of 8

Thread: TrayIcon with Qt4

  1. #1
    Join Date
    Feb 2006
    Location
    Warsaw, Poland
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default TrayIcon with Qt4

    Anyone knows solution to make TrayIcon with Qt4? I was looking for it a little bit but i've found only Qt4 trayicon port from PSI. I need something simple for now (just for kde and maybe gnome).

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: TrayIcon with Qt4

    Look in qt example TrayIcon
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: TrayIcon with Qt4

    Quote Originally Posted by zlatko
    Look in qt example TrayIcon
    I don't think there's such example in Qt4. It used to be in Qt3..

  4. #4
    Join Date
    Feb 2006
    Location
    Warsaw, Poland
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: TrayIcon with Qt4

    Thats right... TrayIcon example was removed in Qt4

  5. #5
    Join Date
    Feb 2006
    Location
    Österreich
    Posts
    35
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: TrayIcon with Qt4

    Maybe this code will work.

    http://www.koders.com/cpp/fid849893D...9EB4874AC.aspx

    Luckily for you, it is GPL'ed. Remember to get the header and the appropriate trayicon_$platform.cpp file(s) too.
    My philosophy is: If you can use a free, open-source alternative: do it. And if you can't, pretend it's free and open-source and hope you don't get caught.

  6. #6
    Join Date
    Feb 2006
    Location
    Warsaw, Poland
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: TrayIcon with Qt4

    Uch its Qt3 code... I have port of it to Qt4 but also i need some simple example to undestand it quite easily... Code i have is realy strange and after few fixes needed to compile, it doesnt work at all (Well my task behave like while adding icon but no icon appear). Also as jacek suggested to me i would like to use dbus (cuz it should handle task icon for al WMs on Unix platforms)
    Last edited by naresh; 15th February 2006 at 17:43.

  7. #7
    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: TrayIcon with Qt4

    Quote Originally Posted by naresh
    Also as jacek suggested to me i would like to use dbus (cuz it should handle task icon for al WMs on Unix platforms)
    You have misunderstood me, I was only speculating about the future.

  8. #8
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: TrayIcon with Qt4


Similar Threads

  1. TrayIcon problem?
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 5th December 2008, 08:32
  2. Qt 4.1.3 - XP - TrayIcon
    By incapacitant in forum Newbie
    Replies: 4
    Last Post: 13th June 2006, 16:54
  3. trayicon port to QT4
    By ykohn in forum Qt Programming
    Replies: 10
    Last Post: 21st April 2006, 15:11

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.