Results 1 to 14 of 14

Thread: dont want to scroll

Threaded View

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

    Default Re: dont want to scroll

    don;t use QScrollBar, directly add the plot widget on to the main widget's layout, I can give you an example, fit this into you application

    Qt Code:
    1. QHBoxLayout * layout = new QHBoxLayout;
    2. mainWidget->setLayout(layout);
    3.  
    4. layout->addWidget(button); // adding button to layout
    5. layout->addWidget(label); // adding label to layout
    6. layout->addWidget(p1); // adding plot 1 to layout
    7. layout->addWidget(p2); // adding plot 1 to layout
    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.