Results 1 to 3 of 3

Thread: inherit from QSqlDatabase

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: inherit from QSqlDatabase

    It's probably a bad idea at all to try and subclass QSqlDatabase. It is much better and easier to create your own class that accepts QSqlDatabase as a parameter, stores it as a private member and uses it to operate on the database where required.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    RogerWilco77 (27th January 2013)

  3. #2
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: inherit from QSqlDatabase

    Thanks for the advice.
    I will follow it. Still it seems like I have something not understood regarding static functions.
    Have a nice weekend.

Similar Threads

  1. Replies: 0
    Last Post: 2nd December 2011, 19:52
  2. How can we inherit ui?
    By vinayaka in forum Newbie
    Replies: 5
    Last Post: 30th May 2011, 14:28
  3. About inherit
    By nesson in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2011, 13:07
  4. How to use the ui_*.h,inherit it or as a member?
    By 75543255 in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2009, 10:45
  5. Inherit the QAxWidget
    By MrShahi in forum Qt Programming
    Replies: 3
    Last Post: 29th April 2008, 08:06

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.