Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: How To Apply Scroll Only for few columns of QTableview

  1. #21
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Apply Scroll Only for few columns of QTableview

    HI , I setup base tableview header in init routin before setup FrozenTableView , and after setup custom header for both table views in init routin i applied viewport()->stackUnder(FrozenTableView) , but even also am facing same issue . could any one help me .


    Added after 1 44 minutes:


    Hi , I set the custom header for both base and frozen in init riutin and i applied viewport()->stackUnder(frozenTableView); but even still i have this issue .

    HI , I setup base tableview header in init routin before setup FrozenTableView , and after setup custom header for both table views in init routin i applied viewport()->stackUnder(FrozenTableView) , but even also am facing same issue . could any one help me .
    Last edited by RameshNani; 2nd February 2015 at 05:52.

  2. #22
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Apply Scroll Only for few columns of QTableview

    I Applied like below in init routine

    this->setHorizontalHeader(m_header1);
    frozenTableView->setHorizontalHeader(m_header);
    viewport()->stackUnder(frozenTableView);

  3. #23
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Apply Scroll Only for few columns of QTableview

    Anybody help me out from this issue .

  4. #24
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Apply Scroll Only for few columns of QTableview

    Hi Chris ,

    Even when i use normal QHeaderView set to TableView also the Headers are moving Other than CustomHeader. means
    QHeaderView *m_header = new QHeaderView(Qt::Horizantal);
    basetableview->setHorizantalHeader(m_header );

    if we not set any header to basetableview then only the headers are freezed . Could you help me ?

  5. #25
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Apply Scroll Only for few columns of QTableview

    Hi Guru ,

    I have one Problem with Frozen Columns .I am showing 2 FrozenColumns, I set TableView Geometry to show only 2 columns . But when i click on 2nd Column , the 2 nd column moved to 1st pos and 3rd column comes into the place of 2nd column position . But it should not happen , any suggestions from your side ?

Similar Threads

  1. Replies: 0
    Last Post: 13th January 2013, 00:20
  2. Distribute columns in QTableView
    By qlands in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2011, 14:33
  3. Validator for QTableView columns
    By sasi in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 08:10
  4. Don't resize columns - QTableView
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2009, 16:59
  5. autoexpanding QTableView columns
    By ucntcme in forum Qt Programming
    Replies: 6
    Last Post: 11th March 2008, 09:28

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.