Results 1 to 9 of 9

Thread: rowCount does not update after removing widgets from grid layout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: rowCount does not update after removing widgets from grid layout

    Well it really only increases. But also consider following:
    Qt Code:
    1. QWidget *w = new QWidget;
    2. l.addWidget(w, 3, 0);
    3. qWarning() << l.rowCount();
    To copy to clipboard, switch view to plain text mode 
    it will return 4. So the row property is not what you are expecting!
    And do you need the grid functionality because a QVBoxLayout should work like you expect it.

  2. The following user says thank you to Lykurg for this useful post:

    Ishmael (3rd June 2010)

Similar Threads

  1. Grid Layout problem
    By succorguy in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2009, 23:01
  2. How to update scene after removing items
    By nileshsince1980 in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2007, 09:56
  3. How do I layout in a Grid?
    By DPinLV in forum Qt Tools
    Replies: 7
    Last Post: 10th August 2006, 01:37
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. Grid layout
    By nupul in forum Qt Programming
    Replies: 7
    Last Post: 21st April 2006, 21:15

Tags for this Thread

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.