Results 1 to 2 of 2

Thread: Sequence of inverted data row in Qtableview

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2018
    Posts
    31
    Thanks
    8
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Sequence of inverted data row in Qtableview

    Hi,
    I have a problem reading data from a file and presenting it in a QtableView, the sequence of the data row is reversed. I am using the insertRow (int position, int rows, const QModelIndex & index) function of the AddressBook example in the QtableModel, that is, beginInsertRows (QModelIndex (), position, position + rows - 1); .... endInsertRows (). When calling the function insertRow () I put
    int rowPosition = 0;
    tableModel-> insertRows (rowPosition, 1, QModelIndex ());
    rowPosition ++; // Number of rows I have added
    but the rows are presented in an inverted order as in the figures.
    How do I present the rows in the proper order?
    thanks for help me.
    Attached Images Attached Images

Similar Threads

  1. QMatrix Inverted
    By muykim in forum Newbie
    Replies: 1
    Last Post: 18th January 2018, 05:52
  2. QwtPolarSpectrogram with inverted Radius
    By ishitha92 in forum Qwt
    Replies: 5
    Last Post: 31st March 2017, 15:31
  3. Replies: 2
    Last Post: 28th January 2015, 15:27
  4. Inverted QTextEdit
    By TMan in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2009, 17:35
  5. QWTdial inverted range
    By jmsbc in forum Qwt
    Replies: 1
    Last Post: 12th January 2009, 22:21

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.