Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2007
Why setIcon does not work for QToolButton ActiveX control?


Message 1 in thread

Why setIcon does not work for QToolButton ActiveX control?

This question is about a Qt example at:
C:\Qt\4.3.0beta\examples\activeQt\wrapper\main.cpp
(earlier versions also have)
where you can find a line of code is commented out:

if ( key == "QToolButton" ) {
        QToolButton *tb = new QToolButton(0);
//        tb->setIcon( QPixmap(fileopen) );
        return tb;
    }

I uncommented it, and found it does not work. Why?
Does anyone know how to setIcon for this ActiveX control?

BTW, my Qt version is: qt-win-commercial-4.3.0beta-vs2003.exe

Thanks in advance,
Lingfa



--
 [ signature omitted ]