Results 1 to 4 of 4

Thread: signal/slot for a Qebview urlChanged event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    86
    Thanks
    11
    Thanked 7 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default signal/slot for a Qebview urlChanged event

    this is a silly question, that most likely has an easy answer... but if I have a Qwebview called ui->webView... how do I connect the webview event as a signal and slot for a urlChanged()?

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: signal/slot for a Qebview urlChanged event

    You start by reading the signals and slots documentation.

    And then you will write something like:
    Qt Code:
    1. connect(ui->webView, SIGNAL(urlChanged (QUrl) ), OBJECT_TO_CONNECT, SLOT(SLOT_TO_EXECUTE(QUrl)) );
    To copy to clipboard, switch view to plain text mode 
    //i don't know for sure if the correct parameter is QURL, check here

Similar Threads

  1. signal/slot or subclassed event?
    By liqxpil in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2010, 11:15
  2. Problem with urlChanged signal
    By lucenty in forum Newbie
    Replies: 1
    Last Post: 9th August 2009, 13:40
  3. signal and slot across threads having event loop
    By travis in forum Qt Programming
    Replies: 6
    Last Post: 5th November 2007, 23:56
  4. Replies: 4
    Last Post: 23rd January 2006, 16:51
  5. What's the relationship between signal/slot and event?
    By twosnowman in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 17:13

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
  •  
Qt is a trademark of The Qt Company.