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. [Resolved] Is QSqlRecord lazy loading?

[Resolved] Is QSqlRecord lazy loading?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 486 Views
  • 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.
  • S Offline
    S Offline
    sharethl
    wrote on 22 May 2015, 13:24 last edited by sharethl
    #1

    On Line 1, is the QSqlTableModel fetch all fields from first record in database ?
    Or it will wait until Line 2, to fetch required field base on request?

    Line 1
    QSqlRecord record = model->record(0);

    Line 2:
    auto guid = record.value(columnName).toUuid();

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 May 2015, 22:52 last edited by
      #2

      Hi,

      AFAIK, and based on the doc, the record returned is populated.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      22 May 2015, 13:24

      • Login

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