Re: [Interest] How to develop a WYSIWYG HTML editor based on QtWebkit?

2012-08-07 Thread 程梁
Thank you! What I try to develop is a full feature HTML editor just like Windows Live Writer. QTextEdit seems only support a subset of HTML and you have to render all unsupported tags by yourself, so I chose QtWebkit. 2012/8/8 Jason H > There are also is some capabilities built into old school Q

Re: [Interest] How to develop a WYSIWYG HTML editor based on QtWebkit?

2012-08-07 Thread 程梁
Thanks! I saw this example before. There is the same problem as I met. If you clear editing area and type something, you will got some HTML code like: http://www.w3.org/TR/html4/strict.dtd";> HTML Editor Demo hey in which I just write hey and I want to get hey as simple. Thank you again!

Re: [Interest] How to develop a WYSIWYG HTML editor based on QtWebkit?

2012-08-07 Thread Jason H
There are also is some capabilities built into old school Qt using QTextDocument, not needing WebKit From: Josiah Bryan To: 程梁 ; interest@qt-project.org Sent: Tuesday, August 7, 2012 10:35 PM Subject: Re: [Interest] How to develop a WYSIWYG HTML editor based

Re: [Interest] How to develop a WYSIWYG HTML editor based on QtWebkit?

2012-08-07 Thread Josiah Bryan
Have you seen http://labs.qt.nokia.com/2009/03/12/wysiwyg-html-editor/? I'm not sure if the example there will help with your problems at all. Just a guess, though - for your item #1 - the blog references using javascript code from c++ to interact. You could easily write a javascript function (heck

[Interest] How to develop a WYSIWYG HTML editor based on QtWebkit?

2012-08-07 Thread 程梁
Hi, there! I'm trying to develop a WYSIWYG HTML editor based on QtWebkit, but nowadays I found some problems: 1. The HTML source code generated by QWebFrame::toHtml() is rather complex, for example, it will add a style in which is not necessary. Could I generate the HTML source code by myself? I

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread BRM
> From: Jason H >Sent: Tuesday, August 7, 2012 4:03 PM >Subject: Re: [Interest] Questions about QGraphicsWidget > >"Converting the parent QGraphicsWidget to be derived from > > QGraphicsItemGroup also removes the ability to add a nice little > > management layer with signals and slots; it also

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread Jason H
"Converting the parent QGraphicsWidget to be derived from QGraphicsItemGroup also removes the ability to add a nice little management layer with signals and slots; it also removes the parent widget from being able to be added to a QGraphicsLayout." Why and why? You might have to map a event coo

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread BRM
> From: BRM >Subject: Re: [Interest] Questions about QGraphicsWidget >> From: Jason H >>To: BRM ; Interests Qt >>Subject: Re: [Interest] Questions about QGraphicsWidget >>First, there is QGraphicsItemGroup, which would probably do what you want, >>and automatically provides a boundingRect() a

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread BRM
> From: Jason H >To: BRM ; Interests Qt >Subject: Re: [Interest] Questions about QGraphicsWidget >I think you're kinda thinking about it wrong.  You're right - I probably am. I'm quite use to QWidget still, and trying to get my head around some of the differences for QGraphics. >First, the

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread Jason H
I think you're kinda thinking about it wrong.  First, there is QGraphicsItemGroup, which would probably do what you want, and automatically provides a boundingRect() as the unsion of all child bounding rects. When custom drawing your item always draw it "native" resolution. let the Scene work o

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread Bill Crocker
On 08/07/2012 12:36 PM, BRM wrote: > I'm working on a QGraphicsWidget version of something I already have a > QWidget version of; namely because I need to add some features where I need > to overlay items, lines, and text in a way that QWidget does not support You can also overlay your existing

[Interest] Questions about QGraphicsWidget

2012-08-07 Thread BRM
I'm working on a QGraphicsWidget version of something I already have a QWidget version of; namely because I need to add some features where I need to overlay items, lines, and text in a way that QWidget does not support (namely the addition of the text information) - presently I'm just focused o

Re: [Interest] Qt 4.8.x and OS X 10.8 Mountain Lion - my experience

2012-08-07 Thread Till Oliver Knoll
2012/7/30 : > Does QFileDialog::getOpenFileName() in Mountain Lion not work anymore? > > If I debug an example with Xcode I get NS* timeouts. In case you are referring to the example as downloaded from here: https://bugreports.qt-project.org/browse/QTBUG-21609 That example has *wrong Entitlem

[Interest] QMenu styling

2012-08-07 Thread André Somers
Hi, I am trying to style a QMenu and add an additional, menu-specific icon to the left of the actual items in the menu, like in the mockup here: https://dl.dropbox.com/u/16442531/menumockup.png I subclassed QMenu to overwrite its paintEvent to render the icon and the vertical line, which works