Results 1 to 3 of 3

Thread: How can i pass click event to a qwebElement within QwebView.

  1. #1
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How can i pass click event to a qwebElement within QwebView.

    Hi ,
    I have 2 radio buttons in a web page.
    I want the 1st radio button automatically clicked when the QwebView is loaded first.
    Please suggest me how can I do this?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can i pass click event to a qwebElement within QwebView.

    I suggest you find a good HTML tutorial and adjust your HTML so the radio button is selected.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How can i pass click event to a qwebElement within QwebView.

    QWebFrame has a loadFinished() signal.

    Use the DOM access or JavaScript evalution to do you bidding.

    Cheers,
    _

Similar Threads

  1. Pass event (QWheelEvent) to a specific widget
    By stefanadelbert in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2021, 04:10
  2. QWebView and right click reload
    By sky in forum Newbie
    Replies: 8
    Last Post: 14th September 2016, 11:07
  3. Replies: 3
    Last Post: 9th September 2014, 23:55
  4. Howto select/show a QWebElement in QWebview
    By nightghost in forum Qt Programming
    Replies: 1
    Last Post: 2nd September 2010, 13:51
  5. pass mouse event information to another widget
    By Rooster in forum Qt Programming
    Replies: 5
    Last Post: 12th July 2008, 05:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.