Qt-interest Archive, October 2001
pixmap on QToolButton
Message 1 in thread
Hi,
I am using Qt 2.3.1 on Linux, and writing an application.
When I use Qt Designer for designing GUI, I got a problem.
I want to use QToolButton on which certain pixmap can cover. By clicking
right button of mouse, a menu appears with "Choose pixmap". I tried to
choose a pixmap and compiled it, but it wasn't reflected. The button
just shows the text '...' as default. In the class file generated by
uic, the codes are described as below. Is it an error of Qt Designer,
or is there any way to solve the problem? Any suggestions are greatly
appreciated.
------------------------------------------------------
ToolButton = new QToolButton( this, "ToolButton" );
ToolButton->setGeometry( QRect( 20, 290, 91, 41 ) );
ToolButton->setText( tr( "..." ) );
------------------------------------------------------
Thank you,
Mineo Morohashi
moro@caltech.edu