Results 1 to 7 of 7

Thread: Getting problems to convert from string to QDateTime

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Location
    Stuttgart / Germany
    Posts
    35
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Getting problems to convert from string to QDateTime

    Hello,

    Thanks for your reply. I don't think it's because of the language. When I write in german I get the same error, no convertion. To test I'm using a constant value, I tried in english and german and nothing happens.

    If you have any other idea, please tell me. haha
    Thanks.

    Hello d_stranz,

    I know that maybe it's not a nice solution, but actually this is one of the requirements, I cannot change. I'm setting a first value as an example to show the user and I used an input mask to limitate the user input. But I have to do like that.

  2. #2
    Join Date
    Feb 2012
    Location
    Stuttgart / Germany
    Posts
    35
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Getting problems to convert from string to QDateTime

    Hello d_stranz and Lykurg,

    Thanks for the help. I found the problem. My bad... there was a false space in my input mask... that's why it was not working...

    thanks again

Similar Threads

  1. How to convert string into const int ?
    By babygal in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2010, 10:57
  2. convert decimal seconds to QDateTime and back
    By mcarter in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2010, 12:06
  3. convert a string to hex
    By priceey in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2009, 10:38
  4. How to convert unix time to QDateTime
    By lni in forum Qt Programming
    Replies: 3
    Last Post: 14th November 2007, 00:25
  5. Replies: 1
    Last Post: 30th June 2006, 05:24

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.