Results 1 to 6 of 6

Thread: how to scroll tablewidget from outside placed scrollbar

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Apr 2006
    Posts
    11
    Thanked 1 Time in 1 Post

    Default Re: how to scroll tablewidget from outside placed scrollbar

    connect(verticalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(scrollVerticaly(int)));
    connect(horizontalScrollBar, SIGNAL(valueChanged(int)), this, SLOT(scrollHorizontaly(int)));

    void CMatrixWidget::scrollVerticaly(int value)
    {
    table3->verticalScrollBar()->setSliderPosition(value);
    table1->verticalScrollBar()->setSliderPosition(value);
    }

    void CMatrixWidget::scrollHorizontaly(int value)
    {
    table2->horizontalScrollBar()->setSliderPosition(value);
    }

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

    tuanfithou (2nd November 2007)

Similar Threads

  1. QTreeWidget + ScrollBar
    By raphaelf in forum Qt Tools
    Replies: 12
    Last Post: 1st June 2006, 20:53
  2. Retrieving offsets of scroll in QWorkspace
    By hardgeus in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 02:25
  3. Replies: 6
    Last Post: 14th April 2006, 05:39
  4. QTableView number of rows and scrollbar issue
    By jnk5y in forum Qt Programming
    Replies: 3
    Last Post: 1st March 2006, 06:55
  5. QRubberBand painting in the scroll area widget
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 17th January 2006, 16:48

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.