Web lists-archives.org

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!
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<