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. QSqlQueryModel: copy ctor explicitly deleted
Forum Updated to NodeBB v4.3 + New Features

QSqlQueryModel: copy ctor explicitly deleted

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 157 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on last edited by
    #1

    (Qt 6.6.0)
    Why, oh, why is the copy constructor of QSqlQueryModel (and that of QAbstractTableModel) explicitly deleted...?
    Any insight would be greatly appreciated.

    Thanks,
    Roy

    Christian EhrlicherC 1 Reply Last reply
    0
    • T TheFlyingMooseMan

      (Qt 6.6.0)
      Why, oh, why is the copy constructor of QSqlQueryModel (and that of QAbstractTableModel) explicitly deleted...?
      Any insight would be greatly appreciated.

      Thanks,
      Roy

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @TheFlyingMooseMan Because an QObject can not be copied by design. See also https://doc.qt.io/qt-6/objecttrees.html
      Why do you want to copy the model?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

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