Results 1 to 5 of 5

Thread: TrayIcon problem?

  1. #1
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default TrayIcon problem?

    Hi gusy,

    I set my trayicon for the applicaion + context menu as it's done in the "desktop/system tray" example, but I have a strange behaviour:
    Most of the time the contex menu is transparent, I only see lower,right border of the menu, but actions/menu is transparent; once 10 times I see the whole menu as it should be done.
    I am wondering has anyone came across this kind of problem or is it only my laptop.

    I am recompiling the Qt thinking that a problem might have appeared while compiling the library.

    {ADDED}
    It looks I am exp. the same problem as the develoepr here:
    http://www.qtcentre.org/forum/f-newb...ues-14669.html

    DO you have any ideas, why this is happening?

    Before hand thanks,
    Last edited by maverick_pol; 4th December 2008 at 21:00.
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Re: TrayIcon problem?

    It probably would help if you provided more information on your setup, like what OS you are using, which Qt release, etc. Is it the same as in the other thread you mention? The code of your application that results in this behaviour could also be helpful.

    Without that information, I can only say that I'm developing an application right now which employs a tray icon, and I never ever came across a problem like the one you describe, using Kubuntu 8.04, Qt 4.4.0.

  3. #3
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: TrayIcon problem?

    I am developing under kubuntu 8.x, mac 10.4 and vista.
    The problems concerns Vista solution; What is strange, the tray sometimes works fine; when I started working with the tray icon it worked fine but after few days i began to mulfunction.

    The menu looks the same as in the other thread(transparend with borders).

    I am using Qt 4.4.3 and Qt 4.4.0 and Qt 4.4.0 with mingw.

    I setup the tray almost the same as in the "system tray" example.
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  4. #4
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: TrayIcon problem?

    So this only happens with Vista? Well, it looks pretty much like a bug then... In that case you should try a more recent version of Qt (like 4.4.3) and see if you can still reproduce the issue. Maybe it is a known bug that has already been fixed.

    If it hasn't been fixed, you might also want to check the task tracker for any reports on that issue, or report it yourself if you don't find any.

    Right now, I can only repeat that "it (always) works for me" on Linux, so this really looks like a platform-specific regression (assuming that it worked before on Windows, which I don't doubt, as tray icons are a feature that is used quite often, in my experience) and the Trolls should be made aware of it.

  5. #5
    Join Date
    Nov 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: TrayIcon problem?

    I have seen the same, but only while I was using MinGW (QtCreator) and in Debug mode. If I use VS2005, or on Release, I could never reproduce this.

Similar Threads

  1. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 13:48
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  4. problem with paint and erase in frame
    By M.A.M in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 21:17
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.