Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSystemTrayIcon hide() crash on mac while I use QTimer to change the icon of QSystemTrayIcon
Qt 6.11 is out! See what's new in the release blog

QSystemTrayIcon hide() crash on mac while I use QTimer to change the icon of QSystemTrayIcon

Scheduled Pinned Locked Moved General and Desktop
21 Posts 5 Posters 25.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #11

    If you start and end your code section in your post with an 'at' sign ('@') it will look much nicer. That is what the others are asking for.

    I have just added in the post above these two signs in the begin at the end. And voila it looks much better.

    Sorry, had to do two posts ;-)

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #12

      there is a wiki page explaining how the editor works :
      "Using the editor :":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #13

        ok , guys , thanks very much , I have changed them now ~~anyone could give me solution ?thanks

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #14

          It may be caused by some internal objects that are no longer available after you hide the icon. I can reproduce the crash on my Mac box.

          As a workaround you can replace the call to hide with a single shot timer in your slot like this

          @
          fSystemTrayTimer->stop() ;
          //fSystemTrayIcon->hide();
          QTimer::singleShot(0, fSystemTrayIcon, SLOT(hide()));
          @

          This way the call to hide is delivered after you have left the slot.

          EDIT:
          I've added this as a doc not to [[Doc:QSystemTrayIcon]] too.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #15

            thanks Volker , you are always the best problem solver for me . Great Appreciation ~~~

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #16

              hi Volker , I also meet the same problem as the following link
              http://svn.netlabs.org/qt4/ticket/201
              do you have some solution for that ?thanks ~~

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #17

                I'll have a look into this later.

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #18

                  thanks very much , I have read the guide to ask questions , it is very helpful for me , thank you very much , I will do this better ~~

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #19

                    I didn't forget you but I was terribly busy the last week and am off for vacation soon, so please be a bit more patient.

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #20

                      thanks Volker ~~just have a look when you have time , thanks

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #21

                        [quote author="brucewuu" date="1309959197"]hi Volker , I also meet the same problem as the following link
                        http://svn.netlabs.org/qt4/ticket/201
                        do you have some solution for that ?thanks ~~[/quote]

                        That's out of scope for me. I don't know the internal workings for the OS/2 port, sorry.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved