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. In QTextBrowser backwardAvailable is false after first link is clicked
Forum Updated to NodeBB v4.3 + New Features

In QTextBrowser backwardAvailable is false after first link is clicked

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 485 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.
  • G Offline
    G Offline
    GraemeA
    wrote on last edited by
    #1

    In this example:
    @
    QTextBrowser * b = new QTextBrowser;
    connect(b,SIGNAL(backwardAvailable(bool )),this,SLOT(backwardAvailable(bool)));
    QString html = '<html><body><p>Test</p><br/>
    <a href="#anchor1">Jump to 1</a><br/>
    <a name="anchor1">This is anchor1</a><br/>
    <a href="#anchor2">Jump to 2</a><br/>
    <a name="anchor2">This is anchor2</a>
    </body></html>';
    b->setHtml(html);
    @
    whichever link is clicked first, the value of 'available' passed to the backwardAvailable slot is false. Subsequent clicks pass true.

    This doesn't seem right and I don't see how I can return to where the user clicked first time.

    Any ideas?

    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