I think QColorDialog cannot be instantiated or subclassed from PyQt. I
don't really know if the same behaviour exists in C++. I looked at the
source code of the QColorDialog::getColor function and it is
QColor QColorDialog::getColor(const QColor& initial, QWidget *parent)
{
QColorDialog *dlg = new QColorDialog(parent, true); //modal
dlg->setWindowTitle(QColorDialog::tr("Select color"));
dlg->setColor(initial);
dlg->selectColor(initial);
int resultCode = dlg->exec();
QColor result;
if (resultCode == QDialog::Accepted)
result = dlg->color();
delete dlg;
return result;
}
Looking at the code, I can see that, it can be instantiated from C++.
Mike
On 9/26/07, Phil Thompson <[EMAIL PROTECTED]> wrote:
> The next releases of SIP and PyQt4 will be made in the next few days. Both are
> maintenance releases (ie. mostly bug fixes). If anybody thinks there is
> something that still needs fixing then now is the time to shout.
>
> Phil
> _______________________________________________
> PyQt mailing list [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt