Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Wrong header order in QSqlRelationalTableModel
Qt 6.11 is out! See what's new in the release blog

Wrong header order in QSqlRelationalTableModel

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 646 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhebulonn
    wrote on last edited by
    #1

    Hi,

    I need help/explanation about a problem with QSqlRelationalTableModel.

    This problem only happens with Oracle database and not all the time.

    For example, i create a table with this columns :
    id, name, town

    The model I get can have the header in this order :
    town, id, name

    It happens after the creation of the table or the add of a column.

    If it happens, it happens everytime. And if all is ok, it's ok all the time (I mean until next add or remove of column).

    Last time it happened, I just added a column to a table (ALTER TABLE myTable ADD myCol NUMBER). Before this, the QSqlRelationalTableModel I got was Ok. And after, I get columns in the wrong order (but always the same wrong order).

    Any ideas ?

    Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved