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. Is there a way to update the screen from outside the application?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to update the screen from outside the application?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.5k Views 2 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.
  • M Offline
    M Offline
    m.kawakami
    wrote on last edited by
    #1

    Hi,
    Is there a way to update the screen from outside the application?
    I may like to redraw the screen, but I do not want to change the application.

    K 1 Reply Last reply
    0
    • M m.kawakami

      Hi,
      Is there a way to update the screen from outside the application?
      I may like to redraw the screen, but I do not want to change the application.

      K Offline
      K Offline
      kenchan
      wrote on last edited by kenchan
      #2

      @m.kawakami
      When you say "screen" what do you mean? the background of the desktop or just your apps window?
      Why from outside the application, do mean from another application/process, or a thread of your own application?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        m.kawakami
        wrote on last edited by
        #3

        Thank you for your reply.

        When you say "screen" what do you mean? the background of the desktop or just your apps window?

        It is only the application window.

        Why from outside the application, do mean from another application/process, or a thread of your own application?

        There is a problem with screen rendering, and it is hard to put modifications into multiple applications.
        I would like to respond by updating it in some way from another process or by making changes to the Qt library.

        Is there any way?

        K 1 Reply Last reply
        0
        • M m.kawakami

          Thank you for your reply.

          When you say "screen" what do you mean? the background of the desktop or just your apps window?

          It is only the application window.

          Why from outside the application, do mean from another application/process, or a thread of your own application?

          There is a problem with screen rendering, and it is hard to put modifications into multiple applications.
          I would like to respond by updating it in some way from another process or by making changes to the Qt library.

          Is there any way?

          K Offline
          K Offline
          kenchan
          wrote on last edited by kenchan
          #4

          @m.kawakami
          Ok, so just to be clear. You want to update the window of your app from a different process?
          When you say update do you mean you want to draw on the window of your app from another process or just get it to update or refresh the window?
          It is not possible to draw on a Qt GUI window directly from a different process but you might be able to send it messages and make it respond by drawing on its own windows.
          What OS are you using?

          1 Reply Last reply
          2
          • M Offline
            M Offline
            m.kawakami
            wrote on last edited by
            #5

            Thank you for your reply.

            You want to update the window of your app from a different process?
            When you say update do you mean you want to draw on the window of your app from another process or just get it to update or refresh the window?

            Yes, that's right.

            It is not possible to draw on a Qt GUI window directly from a different process but you might be able to send it messages and make it respond by drawing on its own windows.
            What OS are you using?

            The OS uses Linux. Please teach me how to do it.

            K 1 Reply Last reply
            0
            • M m.kawakami

              Thank you for your reply.

              You want to update the window of your app from a different process?
              When you say update do you mean you want to draw on the window of your app from another process or just get it to update or refresh the window?

              Yes, that's right.

              It is not possible to draw on a Qt GUI window directly from a different process but you might be able to send it messages and make it respond by drawing on its own windows.
              What OS are you using?

              The OS uses Linux. Please teach me how to do it.

              K Offline
              K Offline
              kenchan
              wrote on last edited by kenchan
              #6

              @m.kawakami
              Sorry I don't use Linux. In any event I think you must change the application to receive messages from other processes and process them.
              I don't now how best to do that on Linux but sockets come to mind. Maybe someone else can help you with those details.

              What problems are you having that makes you need to force the window to redraw from another process?

              1 Reply Last reply
              2
              • M Offline
                M Offline
                m.kawakami
                wrote on last edited by
                #7

                @kenchan said in Is there a way to update the screen from outside the application?:

                Sorry I don't use Linux. In any event I think you must change the application to receive messages from other processes and process them.
                I don't now how best to do that on Linux but sockets come to mind. Maybe someone else can help you with those details.
                What problems are you having that makes you need to force the window to redraw from another process?

                There is a problem that display on the way collapses. This can be solved with update.
                However, there are reasons why you can not change the source code of the application.

                I am looking for ways to update the application's source code without changing it.

                A 1 Reply Last reply
                0
                • M m.kawakami

                  @kenchan said in Is there a way to update the screen from outside the application?:

                  Sorry I don't use Linux. In any event I think you must change the application to receive messages from other processes and process them.
                  I don't now how best to do that on Linux but sockets come to mind. Maybe someone else can help you with those details.
                  What problems are you having that makes you need to force the window to redraw from another process?

                  There is a problem that display on the way collapses. This can be solved with update.
                  However, there are reasons why you can not change the source code of the application.

                  I am looking for ways to update the application's source code without changing it.

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #8

                  @m.kawakami It sounds like you just want to refresh the window of an application that is not your application. So you don't have the source for it and you can't modify it.

                  In which case I would just have your application call xrefresh. Type man xrefresh ... or here is an online man page for you:

                  https://linux.die.net/man/1/xrefresh

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  1 Reply Last reply
                  5
                  • M Offline
                    M Offline
                    m.kawakami
                    wrote on last edited by
                    #9

                    @ambershark said in Is there a way to update the screen from outside the application?:

                    @m.kawakami It sounds like you just want to refresh the window of an application that is not your application. So you don't have the source for it and you can't modify it.
                    In which case I would just have your application call xrefresh. Type man xrefresh ... or here is an online man page for

                    Thank you for your reply.
                    xrefresh has already tried, but it was not improved. QWidget::update () has confirmed that the display has been improved.

                    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