Results 1 to 3 of 3

Thread: QMYSQL CHAR(1) mapped to QString

Hybrid View

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

    Default Re: QMYSQL CHAR(1) mapped to QString

    Why is that a problem? Can't you convert the type in getter and setter methods? A simple string[0] would do...

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

    juannm (25th August 2008)

  3. #2
    Join Date
    Dec 2007
    Posts
    11
    Thanks
    4

    Default Re: QMYSQL CHAR(1) mapped to QString

    well thats what I have done, everything in the QPROPERTY is a QString, except for the return type of the getter method, which is a QChar (that's because the rest of the code expects a QChar from the getter).

    Thanks anyway, I just wanted to know if there was another way of doing this thing.

Similar Threads

  1. Convert from iso-8859-1 to... Something else :-)
    By Nyphel in forum Qt Programming
    Replies: 4
    Last Post: 7th March 2007, 17:59

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.