From: lj8888 <lj...@us...> - 2010-06-10 13:51:09
|
Hi Match, About using the QComboBox instead of the currently used QToolBox inside our ColorButton class, QComboBox gives entirely different appearance. It does not seem to be supporting the icon stuff we used so far within the ColorButton. By default it would only display text, and the text and the color box icon in the pop up only. I'll look into it more, to see how much I can customize it. Larry On Wed, Jun 2, 2010 at 10:51 AM, Matchman <mat...@gm...> wrote: > It's OK. Take your time. > > On Wed, Jun 2, 2010 at 10:45 PM, lj8888 <lj...@us...> > wrote: > > Sure. I'll help. I just had a slow last two weeks. > > Larry > > > > On Tue, Jun 1, 2010 at 6:12 AM, Matchman <mat...@gm...> wrote: > >> > >> Yes, I would like to see such a switch. We need to implement very > >> similar things in our property box. As you can see I have already > >> added a delegate class to create different editor widgets for > >> different property (e.g. fill and stroke color, position etc). > >> > >> Are you familiar with the our GraphicsObject hierarchy? Everything > >> appear on screen that is saved with the PDF is a derived class from > >> GraphicsObject. We currently have TextObject, PathObject and > >> ImageObject. All these objects can provide data to the property box, > >> because GraphicsObject inherits QAbstractTableModel. > >> > >> I would like to ask for your help on working on the property box. Are > >> you interested? > >> > >> Thanks. > >> > >> Match > >> > >> On Tue, Jun 1, 2010 at 9:55 AM, lj8888 <lj...@us...> > >> wrote: > >> > Hi Match, > >> > Yep I've seen that code when I was reading about the > model/view/delegate > >> > thing. The code is really simple. That may be a better color selection > >> > style > >> > then what I originally implemented under our ColorBox. So if you want > we > >> > could switch to this new one: the itemsview-coloreditorfactory combo > >> > box. > >> > Just let me know. > >> > I just pulled and noticed that you already did a partial > implementation > >> > of > >> > the color box under the properties. Nice. Are you planing to continue > >> > with > >> > that one? > >> > Talk to you later. > >> > Larry > >> > > >> > On Mon, May 31, 2010 at 1:17 PM, Matchman <mat...@gm...> > wrote: > >> >> > >> >> Hi Larry, > >> >> > >> >> Recently when I am implementing the editable property box, I found > the > >> >> following Qt example that does exactly what I want: > >> >> > >> >> http://doc.qt.nokia.com/4.6/itemviews-coloreditorfactory.html > >> >> > >> >> See the colors in the combo box? The code is very simple and short. > >> >> > >> >> The current color box will disappear when the user double clicks the > >> >> color entries in the property box. You can try pulling the latest > code > >> >> and test. Can we use a combo box instead? > >> >> > >> >> Match > >> > > >> > > > > > > |