Qt-interest Archive, September 2002
building a transfer function editor using QColorDialog
Message 1 in thread
Dear Qt-users,
I'm relatively new to Qt and I have a question concerning the QColorDialog.
I would like to use it in my application for interactively changing a
transfer
function used in volume rendering. Therefore, I would like to change the
dialog in a way that it returns its current color whenever the user moves
the cross within the colored square. Actually, I need the dialog to be a
widget
rather than a dialog because I want it to be visible all the time and
not for
a single user interaction. Has anybody an idea ?
Thanks in advance,
Steffen Oeltze
Message 2 in thread
Hi Steffen,
just try to copy the QColorPicker class from
QColorDialog.cpp in the /src directory to your code.
This class is a QFrame subclass and, as a result, you
can deal with it as a widget.
<Steffen.Oeltze> wrote:
> Dear Qt-users,
>
> I'm relatively new to Qt and I have a question
> concerning the QColorDialog.
> I would like to use it in my application for
> interactively changing a
> transfer
> function used in volume rendering. Therefore, I
> would like to change the
> dialog in a way that it returns its current color
> whenever the user moves
> the cross within the colored square. Actually, I
> need the dialog to be a
> widget
> rather than a dialog because I want it to be visible
> all the time and
> not for
> a single user interaction. Has anybody an idea ?
>
> Thanks in advance,
> Steffen Oeltze
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de