Results 1 to 2 of 2

Thread: QTextBrowser problem

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QTextBrowser problem

    Hi,

    I have a simple chat program. Everything seems working fine but links.

    If I setOpenLinks as true and if I clicked the link via my textbrowser, everything inside the browser is erased.

    I don't have any clear function to empty this area.

    Any ideas?

  2. #2
    Join Date
    Sep 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextBrowser problem

    Hi,
    Did you try textBrowser.setOpenLinks(false); and use a slot as void anchorClicked(const QUrl &link) which will be connected to the signel SIGNAL(anchorClicked(QUrl)) in your textBrowser. It works fine beacause the textBrowser don't clear no more and at the same time you'l receive and treat the clicks on links (excuse my bad english).

Similar Threads

  1. QTextBrowser html file showing problem
    By Furkan in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2011, 09:42
  2. [QtGui] Problem with a QTextBrowser
    By Auliyaa in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2010, 07:51
  3. QTextBrowser problem
    By Mrdata in forum Qt Programming
    Replies: 5
    Last Post: 24th May 2007, 22:05
  4. Could this be a bug in QTextBrowser?
    By clive in forum Qt Programming
    Replies: 5
    Last Post: 29th March 2007, 15:04
  5. QTextBrowser Problem
    By Cutey in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 10:19

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.