[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Using same code for windows and linux ?
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2010-02-23 21:41:55
Message-ID: 20100223214155.GC31802 () trinity ! apaku ! dnsalias ! org
[Download RAW message or body]

On 24.02.10 02:24:43, Jebagnana Das wrote:
> Hello all,
> 
> I developed the GUI (using pyqt) in windows and used setGeometry to position
> the widgets.. When i tried to run the same code in linux it looks
> cluttered..
> 
> And added to that in windows the font size of 8 seems good.. But in linux
> especially in ubuntu it doesn't appear well since the font size is 10 by
> default.. One among the notable differences are the border of the group box
> doesn't appear in linux while it is visible in windows..
> 
> My question is,is there a way that i can make the same code to get the same
> look and feel in windows and linux irrespective of the font and size changes
> and other differences??

Sure, don't use manual layouting, instead leave the layouting to the Qt
layout classes. See http://qt.nokia.com/doc/4.6/layout.html for details.

Andreas

-- 
You will be awarded a medal for disregarding safety in saving someone.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic