Results 1 to 4 of 4

Thread: Forms overlapped in windows xp ......they are fine in windows 7

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Exclamation Forms overlapped in windows xp ......they are fine in windows 7

    Dear Friends
    I have built an application where many forms are present. The way I designed is working fine windows 7 but in windows XP these forms are overlapped. Why is it so. How can I fix this please give me some hints. Thanks Sujan

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Forms overlapped in windows xp ......they are fine in windows 7

    what is a form? Individual window widgets? widgets in other widgets?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: Forms overlapped in windows xp ......they are fine in windows 7

    There nothing to cut and paste, it's a for of various widgets. I have aligned them properly in windows 7 but they're not coming correctly in windows XP. I dont know why is it happening. Do I need to take any special care for deploying it in windows XP ???. If there's anything please let me know. Thanks Sujan

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Forms overlapped in windows xp ......they are fine in windows 7

    The default fonts in Windows 7 vs. XP are probably different sizes (in other words, different pixel sizes).

    Widgets like buttons and labels that contain text will expand their sizes so that all the text is visible, unless you set the maximum width (in Designer or using QWidget method calls in code). So if you are designing in Win 7, you are probably laying out the widgets in a form that has a fixed size and can't expand to accommodate whatever you have inside when you display it in another Windows version.

    Look at the "Appearance" settings in your Windows display properties, see if there is information on the default font size.

Similar Threads

  1. Replies: 5
    Last Post: 14th April 2011, 19:10
  2. How to check if QWidget is overlapped by other windows
    By arturo182 in forum Qt Programming
    Replies: 1
    Last Post: 19th September 2010, 09:54
  3. Replies: 3
    Last Post: 12th July 2010, 06:25
  4. Windows and forms (for a Wizzard)
    By doczorg in forum Newbie
    Replies: 1
    Last Post: 28th January 2010, 08:50
  5. Replies: 0
    Last Post: 1st September 2009, 09:23

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.