PDA

View Full Version : QTextBrowser + QWebView = ?



alexandernst
31st July 2010, 04:21
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 :p).

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

Thanks!

alexandernst
31st July 2010, 21:49
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?

GreenScape
1st August 2010, 00:11
qwebview

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

alexandernst
1st August 2010, 00:20
qwebview can be set to accept input (.setContentEditable(True))

GreenScape
1st August 2010, 00:33
not qwebview but qwebpage

alexandernst
1st August 2010, 02:12
Ok, yes! QWebPage. Can I have anything similar to QTextCursor in QWebPage without going in javascript?