Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Control embedded widgets through jQuery
Forum Update on Monday, May 27th 2025

Control embedded widgets through jQuery

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 2 Posters 2.8k Views
  • 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.
  • V Offline
    V Offline
    volker_x
    wrote on 18 May 2011, 10:40 last edited by
    #1

    Hi there,

    I can set the size of a widget through jQuery command

    @
    $( "#MyWidget" ).css({width: "320px",height: "147px"})
    @

    MyWidget gets a resizeEvent and I can repaint the widget with the new size.

    Is there a way to get events for other commands for animated effects like .slideUp, .fadeIn or .animate?

    Thanks in advance

    [EDIT: code formatting, please wrap in @-tags, Volker]

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on 18 May 2011, 12:53 last edited by
      #2

      In my opinion: it should be the same, I think, but in other events, slideUp should call also resizeEvent(...), fadeIn(...) should call painEvent(...) and animate should call some especially method/event which has to do that required work...

      1 Reply Last reply
      0
      • V Offline
        V Offline
        volker_x
        wrote on 18 May 2011, 13:08 last edited by
        #3

        I get the resizeEvent with slideUp only once and without the transition time. So I can't do some effects.
        Do you know which special methods/events are called by .animate?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Peppy
          wrote on 18 May 2011, 13:24 last edited by
          #4

          You should use QTimer :), in jQuery.animate(...) or all these UI functions works on timers :) ...

          1 Reply Last reply
          0

          1/4

          18 May 2011, 10:40

          • Login

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