Hi,
I have a QToolButton which is having a "QPixmap" loading from resourcefile ( MyResourceFile.qrc ) , with Qt3Support.
After setting setting pixmap , am setting text in QToolButton uisng setText(). But in GUI it is not showing the TEXT , instead displays only the QOixmap.
see the code..
MyMainWindow::MyMainWindow()
{
--------
---------
tr("Quit"), this, SLOT( close() ), myToolBar, "Quit"); //setting pixmap in QToolButton
btn->setText("My Text......"); //setting text in QToolButton
---------
---------
-------
}
MyMainWindow::MyMainWindow()
{
--------
---------
QToolButton *btn= new QToolButton( QIcon(":Images/imageOne.png"), tr("Quit"),
tr("Quit"), this, SLOT( close() ), myToolBar, "Quit"); //setting pixmap in QToolButton
btn->setText("My Text......"); //setting text in QToolButton
---------
---------
-------
}
To copy to clipboard, switch view to plain text mode
Why this is not showing the text in QToolButton...??????
please help me
Bookmarks