Results 1 to 14 of 14

Thread: dont want to scroll

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: dont want to scroll

    Add this in the beginning of the slot (i assume ui->horizontalLayout_2 does not have anything else, other than the layout you add)

    Qt Code:
    1. void analysis::on_pushButton_clicked()
    2. {
    3. QLayoutItem *child;
    4. while ((child = ui->horizontalLayout_2->takeAt(0)) != 0) {
    5. delete child;
    6. }
    7.  
    8. ....
    9. }
    To copy to clipboard, switch view to plain text mode 

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

    maarvi (27th June 2011)

Similar Threads

  1. I dont see any linewidth on a splitter ...
    By tonnot in forum Newbie
    Replies: 3
    Last Post: 31st March 2011, 21:06
  2. QDial disabling key scroll and mouse wheel scroll
    By ldg20 in forum Qt Programming
    Replies: 2
    Last Post: 2nd June 2010, 23:05
  3. Replies: 0
    Last Post: 28th December 2009, 12:24
  4. QGraphicsView dont refresh
    By ProTonS in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2009, 14:05
  5. Replies: 6
    Last Post: 14th April 2006, 05:39

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
  •  
Qt is a trademark of The Qt Company.