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. How to show desktop[probably solved]
Qt 6.11 is out! See what's new in the release blog

How to show desktop[probably solved]

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 6.6k 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.
  • D Offline
    D Offline
    dmitrij
    wrote on last edited by
    #1

    Hello.

    Everybody know, if you'll press logo(Win key) + L, the desktop will be shown. Due to the reason I'm not so closely familiar with win32 API, I would like to ask you a question: how it can be done programmatically? For instance, we have a simple window with only one button, and when we press that button all opened windows will be minimized.

    Thank you beforehand for answers.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      I think you should investigate the proper win32 API to do that. Notice that "showing the desktop" isn't the same than minimizing all windows.

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmitrij
        wrote on last edited by
        #3

        Thank you. I guess so. I found the solution, but it relates to other framework. Here it is, if somebody will be interested in: http://blogs.msdn.com/b/robgruen/archive/2004/02/24/79294.aspx

        But still I haven't any clue, which one win32 API I need to investigate.

        Added: http://msdn.microsoft.com/en-us/library/ms646310 here is the clue.

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

          I think you should not implement this feature in your application, unless you have a very good reason to do so. I personally will get angry if an application can "instrument" other unrelated applications within my desktop. It should be really smarter to implement a feature to make your application hide and leave the user to decide to show or not the whole desktop. That's my opinion.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dmitrij
            wrote on last edited by
            #5

            [quote author="fluca1978" date="1321816947"]I think you should not implement this feature in your application, unless you have a very good reason to do so. I personally will get angry if an application can "instrument" other unrelated applications within my desktop. It should be really smarter to implement a feature to make your application hide and leave the user to decide to show or not the whole desktop. That's my opinion.[/quote]

            Thank you for answer.
            I thought about that too. As good reason I could say, for an example, a kind of an emergency signal.

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

              [quote author="dmitrij" date="1321820034"]

              I thought about that too. As good reason I could say, for an example, a kind of an emergency signal.[/quote]

              Again, in my opinion it should be better to hide your whole application rather than try to show the desktop. And in the case of an emergency signal, it should be better to raise a window on top of the others.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dmitrij
                wrote on last edited by
                #7

                Thank you for answer. Probably I'll do it in your way. And if it will not work in some cases: full-screen movies etc., I'll try to show the Desktop and after that show the notification.

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

                  [quote author="dmitrij" date="1321879809"]Thank you for answer. Probably I'll do it in your way. And if it will not work in some cases: full-screen movies etc., I'll try to show the Desktop and after that show the notification.[/quote]

                  Please note that some operating systems, like Windows, automatically show docking messages even when there is a full screen application like a movie player. It could be that the operating systems you are going to deploy already have such a feature.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dmitrij
                    wrote on last edited by
                    #9

                    I didn't consider that. As I understand, the client will use it only in windows-environment.I guess, in this case, problem solved.
                    Thank you.

                    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