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. Control the widget using WId

Control the widget using WId

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.4k 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
    Dcqt
    wrote on last edited by
    #1

    Hi,
    can anybody let me know what are all the functionalities that can be controlled using just the WId.
    I have a problem and i have access to only WId of the widget.
    i try to find out address of the widgetto control but i cannot do so, because i am accessing the widget in another process.

    @
    WId QWidget::winId () const
    @

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      Hi!

      winId() is a handle to a window (HWND data type). You can use it with window management functions (Windows only). "Here":http://msdn.microsoft.com/en-us/library/windows/desktop/ff468919.aspx is a list of them.

      Many of this functions are already used by Qt, so there is usually no need of using them.


      Code is poetry

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

        Thanks for the reply.

        but i am working on linux and the problem is the video images are not cleaned from the widget , is there any way to refresh or clear the widget before some thing else is launched.

        i tried

        @
        setPalette(QColor(85,84,8,255));
        setAutoFillBackground(true);
        @

        the color is changed but still the previous image contents is still seen.
        please help..

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jake007
          wrote on last edited by
          #4

          I don't have much experience with Linux native windows, but I'm pretty sure that you don't need this function.

          There is a "QWidget::repaint":http://qt-project.org/doc/qt-4.8/qwidget.html#repaint-6 that should do the trick. There is also an options of overloading paint if necessary.
          Are you doing this on graphics scene or purely on widget?


          Code is poetry

          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