Results 1 to 2 of 2

Thread: strange extra spacing between checkboxes

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default strange extra spacing between checkboxes

    Please see the attached PyQt4 program. It's a simple todo program I wrote. "Kartavya" means "Something that needs to be done" in Sanskrit.

    I want to know why the spacing between the list items increases when items are added and how I can stop that from happening. The spacing between the list items must be constant whether there are items or not.

    Thank you.
    Attached Files Attached Files
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: strange extra spacing between checkboxes

    I think readLine() returns a line of text with a new line at the end. You might want to strip that newline - it might be causing the different spacing.

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.