[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: qt issue



Bastiaan Naber <bastiaan@ricardis.tudelft.nl> writes:

> Hi,
>
> I am using debian unstable and I would like to compile the
> following code which is QT:

For reasons unknown to me (the maintainer never answered my inquiry),
Qt3 in Debian is compiled with some styles as plugins.  So, in order to
use these styles, you'll need to change the code to:

--- /home/nelson/test.cpp~	2002-10-13 14:29:01.000000000 -0700
+++ /home/nelson/test.cpp	2002-10-13 14:31:24.000000000 -0700
@@ -1,12 +1,12 @@
 #include <qapplication.h>
 #include <qlistview.h>
 #include <qheader.h>
-#include <qwindowsstyle.h>
+#include <qstylefactory.h>
 
 int main( int  argc, char**  argv )
 {
   QApplication  a( argc, argv );
-  a.setStyle( new QWindowsStyle );
+  a.setStyle( QStyleFactory::create("windows") );
 
   QListView biglist;
   biglist.addColumn( "dontcare" );

-- 
People said I was dumb, but I proved them!



Reply to: