Results 1 to 6 of 6

Thread: QTextBrowser + QWebView = ?

  1. #1
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QTextBrowser + QWebView = ?

    I'm writing an app that will show html-based data and let users write plain text.
    Right now I'm using a QTextBrowser with an eventFilter (for the writing part) and an overwrited function loadResource to be able to load remote images.

    My problem is that I'm noticing that maybe the really poor html support that the QTextBrowser has will stop me making some things that I'd like to do.
    On the other hand, right now I depend really heavely on QTextCursor (in fact, that's the only thing that I'm using for editing) and it seems that QWebView doesn't have nothing similar (and I really don't wanna go throu javascript hell, so don't even suggest it ).

    Is there any custom control that I could use? Or maybe something similar to QTextCursor for QWebView?

    Thanks!

  2. #2
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextBrowser + QWebView = ?

    I can't believe that there is no possible solution!

    Really? Isn't there any method that will let me control text cursor in an editable qwebview?

  3. #3
    Join Date
    Jul 2010
    Posts
    53
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextBrowser + QWebView = ?

    qwebview
    what does view means? i think view(only view).

  4. #4
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextBrowser + QWebView = ?

    qwebview can be set to accept input (.setContentEditable(True))

  5. #5
    Join Date
    Jul 2010
    Posts
    53
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextBrowser + QWebView = ?

    not qwebview but qwebpage

  6. #6
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextBrowser + QWebView = ?

    Ok, yes! QWebPage. Can I have anything similar to QTextCursor in QWebPage without going in javascript?

Similar Threads

  1. Replies: 8
    Last Post: 3rd September 2013, 09:51
  2. link from QTextBrowser to QWebView
    By lamera in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2008, 15:46
  3. Could this be a bug in QTextBrowser?
    By clive in forum Qt Programming
    Replies: 5
    Last Post: 29th March 2007, 15:04
  4. QTextBrowser help please!
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 24th April 2006, 20:27
  5. CSS in QTextBrowser
    By gesslar in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2006, 09:17

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.