Results 1 to 4 of 4

Thread: How to create platform independent ui using Qt Designer

  1. #1
    Join Date
    Jun 2007
    Location
    India/Bangalore
    Posts
    156
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up How to create platform independent ui using Qt Designer

    Hi All,

    I designed one dailog using Qt Designer in windows,

    I want to use the same Dailog in Linux,

    But in Linux my Dailog Elements positions are changed .

    Is there any option to get same view in Linux as whatever view i am getting in Windows?

    Thank you.
    Thanks,
    Rajesh.S

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to create platform independent ui using Qt Designer

    Are you using layouts?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2007
    Location
    India/Bangalore
    Posts
    156
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to create platform independent ui using Qt Designer

    No i am not using Layouts
    Thanks,
    Rajesh.S

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to create platform independent ui using Qt Designer

    The whole point is to mimic look'n'feel of the platform in question. Widgets tend to eat slightly different amount of space depending on the platform unless you force same fonts, style etc. on all platforms (which would make your end-users hate you for sure). And to be exact, even if you set exactly the same font, it would still render slightly differently on various platforms because of different font rendering libraries.

    Using fixed sizes and locations breaks your forms miserably with different fonts and resolutions than yours or when you decide to localize your application. Qt has a wonderful layout system which makes it possible to handle all this in sensible way so why would you not want to use it?
    J-P Nurmi

Similar Threads

  1. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41
  2. Replies: 2
    Last Post: 12th July 2007, 09:55
  3. How to create MDI windows using Qt4 designer?
    By miaoliang in forum Qt Tools
    Replies: 3
    Last Post: 19th October 2006, 08:50
  4. How to create pop up widgets in designer.
    By gsQT4 in forum Qt Tools
    Replies: 1
    Last Post: 25th May 2006, 16:40
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.