[PyQt] Next SIP and PyQt4 Releases

Mike Tammerman mtammerman at gmail.com
Thu Sep 27 13:02:22 BST 2007


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 <phil at riverbankcomputing.co.uk> 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    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


More information about the PyQt mailing list