Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76125

Please make QSqlQuery::~QSqlQuery virtual

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Incomplete
    • Affects Version/s: 5.12.3
    • Fix Version/s: 7.0 (Next Major Release)
    • Component/s: SQL Support
    • Labels:
      None

      Description

      Hi

      I want subclass QSqlQuery, but I can't. The reason is it has no virtual destructor, so my derivative class can't unregister from QSqlDatabase.

      I need to subclass QSqlQuery in order to add exceptions to most common used functions (throw when some of it fail).

      thanks and best regards

      Szyk Cech

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            szykcech Szyk Cech
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes