Title: Copy Paste bug in qt core Post by: Amph on December 01, 2014, 12:45:02 PM sometimes, i can't do a simple copy paste of the amount to spend it or with the address
anyone experienced this? Title: Re: Copy Paste bug in qt core Post by: Foxpup on December 01, 2014, 02:48:34 PM Pasting will fail if the data contains an invalid character. For addresses, valid characters are alphanumeric characters other than I, l, O, and 0. For amounts, valid characters are numerals and a single period as a decimal mark (commas and a leading plus sign are allowed, but ignored - don't use a comma as a decimal mark (which, inconsistently, works when not pasting) unless you like big surprises!) In both cases, leading and trailing whitespace is ignored, though as I recall it caused problems in earlier versions of the client.
I've never seen copying or pasting fail in any other situation. Title: Re: Copy Paste bug in qt core Post by: Newar on December 02, 2014, 04:47:21 AM Shouldn't the period/comma depend on the locale? Many countries use commas as the decimal mark.
I had an issue pasting the other a value from a website. I guess there was some zero-width non-breaking space (?) or similar in there. Title: Re: Copy Paste bug in qt core Post by: Foxpup on December 02, 2014, 07:20:22 AM Shouldn't the period/comma depend on the locale? Many countries use commas as the decimal mark. It should, but it doesn't, besides accepting a comma as a decimal mark when entering values by hand:Code: if (keyEvent->key() == Qt::Key_Comma) |