Hi Viktor, you are right, I'd personally prefer use native libs too, but in this case, I need use plugins for compatibility with dinamic Qt and with other funcionalities
ex: To use images and displaying these, I use the followed code: oPixmap := QPixmap():new() oPixmap:load( ":myimage" ) // load an image from resources oImage := QLabel():new() oImage:setPixmap( oPixmap:pPtr ) // associate Pixmap for show it oImage:move( x , y ) oImage:size( w , h ) oImage:show() In Dinamic Mode: This simplified code work fine with BMP, PNG and JPG In Static Mode: This simplified code work fine with BMP and PNG (don't work with JPG because it need the plugin) If I load JPG plugin, this is transparent for me and my program work fine with JPG too. If I use native Harbour Lib to load JPG image, I can not use the QPixmap class. The jpg plugin is use to illustrate an plugin implementation, but other plugins will be necesaries in the future too. Remember that my english is very poor !!! sorry. Regards CdQ On Wed, Aug 19, 2009 at 10:47 AM, Viktor Szakáts <harbour...@syenar.hu>wrote: > Hi, > > Nice stuff, although we have native libs for many of these, > and I'd personally prefer using those if possible, rather > than reimplementing them in a QT-specific way. It's IMO > also better for Harbour. > > > Brgds, > Viktor > > On 2009.08.19., at 3:31, CarozoDeQuilmes wrote: > > Hi Viktor, Qt has implemented many plugins very interesting: >> >> >> Plugin name >> Type >> Description >> qtaccessiblecompatwidgets >> Accessibility >> Accessibility for Qt 3 support widgets >> qtaccessiblewidgets >> Accessibility >> Accessibility for Qt widgets >> qdecorationdefault >> Decorations (Qt Extended) >> Default style >> qdecorationwindows >> Decorations (Qt Extended) >> Windows style >> qgif >> Image formats >> GIF >> qjpeg >> Image formats >> JPEG >> qmng >> Image formats >> MNG >> qico >> Image formats >> ICO >> qsvg >> Image formats >> SVG >> qtiff >> Image formats >> TIFF >> qimsw_multi >> Input methods (Qt Extended) >> Input Method Switcher >> qwstslibmousehandler >> Mouse drivers (Qt Extended) >> tslib mouse >> qgfxtransformed >> Graphic drivers (Qt Extended) >> Transformed screen >> qgfxvnc >> Graphic drivers (Qt Extended) >> VNC >> qscreenvfb >> Graphic drivers (Qt Extended) >> Virtual frame buffer >> qsqldb2 >> SQL driver >> IBM DB2 >> qsqlibase >> SQL driver >> Borland InterBase >> qsqlite >> SQL driver >> SQLite version 3 >> qsqlite2 >> SQL driver >> SQLite version 2 >> qsqlmysql >> SQL driver >> MySQL >> qsqloci >> SQL driver >> Oracle (OCI) >> qsqlodbc >> SQL driver >> Open Database Connectivity (ODBC) >> qsqlpsql >> SQL driver >> PostgreSQL >> qsqltds >> SQL driver >> Sybase Adaptive Server (TDS) >> qcncodecs >> Text codecs >> Simplified Chinese (People's Republic of China) >> qjpcodecs >> Text codecs >> Japanese >> qkrcodecs >> Text codecs >> Korean >> qtwcodecs >> Text codecs >> Traditional Chinese (Taiwan) >> >> >> Dinamic Qt programs load plugins automaticly, but in static mode, the user >> program need force the load (this is my request to Pritpal) >> >> At this moment I only need jpeg plugin, but in the future, I will need use >> others plugins. >> >> Regards >> CdQ >> >> >> On Wed, Aug 19, 2009 at 1:36 AM, Viktor Szakáts <harbour...@syenar.hu> >> wrote: >> Hi folks, >> >> I'm not sure we should implement whole QT plugin functionality >> just to support jpeg files. >> >> If it helps I can add jpeg library to externals. Maybe some >> Harbour wrappers to that could solve such problems. >> >> Brgds, >> Viktor >> >> >> On 2009.08.19., at 3:31, CarozoDeQuilmes wrote: >> >> Hi Pritpal, I don't know how use it. I read the Qt Documentation and I >> have see that in a c++ program I only need coded: >> >> #include <QtPlugin> >> >> Q_IMPORT_PLUGIN(qjpeg) >> >> and then, add plugin library for jpeg (supplied in >> \qt\2009.03\qt\plugins\imageformats) into linkedit process. >> >> Sorry, but I don't know anymore, I only have make a sample with STATIC >> libraries that run fine, it show png and bmp but it don't show jpg because >> in STATIC mode, the Qt Plugins don't work by default (qjpeg is a plugin for >> jpeg images). >> >> Thanks in advance >> CdQ >> >> >> >> On Tue, Aug 18, 2009 at 9:03 PM, Pritpal Bedi <bediprit...@hotmail.com> >> wrote: >> >> Hi >> >> >> CarozoDeQuilmes wrote: >> > >> > Hi Pritpal, can you add support for plugins in STATIC hbqt library ????? >> > >> > I need it for use JPG image format and ODBC driver. >> > >> > http://qt.nokia.com/doc/4.5/plugins-howto.html >> > >> >> I am trying to understand the concept. >> You can explain how you will use it in .prg code. >> It will tell me what must be coded in hbqt.lib. >> >> Regards >> Pritpal Bedi >> >> -- >> View this message in context: >> http://www.nabble.com/Plugins-in-hbqts-library-tp25034339p25035630.html >> Sent from the Harbour - Dev mailing list archive at Nabble.com. >> >> _______________________________________________ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> >> >> -- >> QAC (I want something comfortable !!!) - Incremental Compilation with all >> MiniGUIs versions >> QAC (Quiero Algo Cómodo !!!) - Compilación Incremental con todas las >> versiones de MiniGUI >> >> Download: www.CarozoDeQuilmes.com.ar >> _______________________________________________ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> _______________________________________________ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> >> >> -- >> QAC (I want something comfortable !!!) - Incremental Compilation with all >> MiniGUIs versions >> QAC (Quiero Algo Cómodo !!!) - Compilación Incremental con todas las >> versiones de MiniGUI >> >> Download: www.CarozoDeQuilmes.com.ar >> _______________________________________________ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- QAC (I want something comfortable !!!) - Incremental Compilation with all MiniGUIs versions QAC (Quiero Algo Cómodo !!!) - Compilación Incremental con todas las versiones de MiniGUI Download: www.CarozoDeQuilmes.com.ar
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour