Re: qt issue
Hi Brian,
Thanks for the solution. I do like to know it this works for all QT's even the
ones that have the styles compiled in instead of as plugins ? Or do I have
to check it QT is compiled with plugins and adjust the code if so ?
Thanks,
Bastiaan
On Sunday 13 October 2002 23:40, Brian Nelson wrote:
> 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:
- Follow-Ups:
- Re: qt issue
- From: Ricardo Javier Cardenes Medina <rcardenes@debian.org>
- References:
- qt issue
- From: Bastiaan Naber <bastiaan@ricardis.tudelft.nl>
- Re: qt issue
- From: Brian Nelson <nelson@bignachos.com>