Toolbar icons "image.png"
- Date: Sun, 18 Nov 2007 19:49:02 -0500
- From: "Tao Man Li" <dutt@xxxxxxxxxxxxxxxxx>
- Subject: Toolbar icons "image.png"
Hi, all
I've got a program originally made directly in QT3.3.x for qmake, without any .ui forms.
I have adopted it to kdevelop 3.5.x, compiled and works.
But I have a problem , in the .cpp file:
#include <qimage.h>
#include <qpixmap.h>
#include<qtoolbar.h>
#include<qmenubar.h>
database_connect = new QAction( this );
database_connect->setText( tr("Connect Database") );
database_connect->setMenuText( tr("Connect Database") );
// problem comes in the following line
database_connect->setIconSet( QPixmap( "filenew.png" ) );
database_connect->setToolTip( tr("Connect to a firebird database") );
database_connect->addTo( databaseTools );
The Toolbar icon "filenew.png" will NOT appear, and even if the "filenew.png"
is NOT in the path (not exists at all), the compiler will NOT report error !
The program compiles, and works, only WITHOUT the toolbar icons.
The same program compiles perfect with qmake, ALL Toolbar icons appear fine.
What is wrong ?
Yours
O'Li
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
Get a free e-mail account today at www.mail.com!
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
- Follow-Ups:
- Re: Toolbar icons "image.png"
- From: Aaron J. Seigo
- Re: Toolbar icons "image.png"
- Prev by Date: Kiosk and KDE 4
- Next by Date: Re: Kiosk and KDE 4
- Previous by thread: Kiosk and KDE 4
- Next by thread: Re: Toolbar icons "image.png"
- Index(es):