Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Thiago Macieira
On sábado, 31 de agosto de 2013 17:27:55, Michael Jackson wrote: > Well, unfortunately I can not remove HDF5 as or entire file format is based > on it. So with that limiting factor in place and knowing that I may have a > file path coming from a standard Open/Save Dialog how would _you_ handle > th

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Michael Jackson
On Aug 31, 2013, at 12:51 PM, Thiago Macieira wrote: >> >> 3) We use the HDF5 (www.hdfgroup.org) to store files. The entire interface >> is "C" and uses char* to get strings into and out the file when needed. Of >> all the discussion going on this is the part that worries me the most. Do I >> u

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Thiago Macieira
On sábado, 31 de agosto de 2013 11:41:20, Till Oliver Knoll wrote: > Am 31.08.2013 um 03:00 schrieb Thiago Macieira : > > > > > > As I said in the other email, if you're going to run this code on Windows, > > you should stop using fopen and iostreams. > > Out of curiosity (and since I am a "

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Thiago Macieira
On sábado, 31 de agosto de 2013 16:31:19, Syam Krishnan wrote: > > Even “simple English” may contain characters not encodable in Latin 1… > > > > As I've just proven > > Oh.. by 'simple English', I meant basic ASCII.. Anyway, if the original > string contained anything other than ASCII printable

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Thiago Macieira
On sábado, 31 de agosto de 2013 09:26:23, Michael Jackson wrote: > As the original poster, thanks everyone for their input. Let me add some > more context to where these "strings" maybe coming from. > > 1) We have constants defined in headers using US ASCII Only Characters such > as the following:

Re: [Interest] My First approach with QT 5.1 on MacOS : very disappointing

2013-08-31 Thread Thiago Macieira
On sábado, 31 de agosto de 2013 12:48:58, Vincent R. wrote: > > Can you post the .pro file that creates the original error message > > above? > > ftp://ftp.ics.com/pub/pickup/qmlc++.zip Thanks. Can you provide the output of make when compiling that and when it creates the compile error? -- Th

Re: [Interest] QtLinuxFB no mouse or keyboard

2013-08-31 Thread yahoo pers
Does it make any difference that i have a static build? Are the plugins supposed to work the same way or do i have to do anything else? From: yahoo pers To: Knight Andrew ; "interest@qt-project.org" Sent: Friday, August 30, 2013 10:03 PM Subject: Re: [Interes

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Constantin Makshin
For ASCII-only hardcoded constant strings it's better to use QLatin1String because of its significantly lower overhead compared to QString (no additional memory [de]allocations and copying, it uses the original 'const char*' as its contents). For storing strings I'd recommend using UTF-8 because i

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Michael Jackson
On Aug 30, 2013, at 11:42 PM, Thiago Macieira wrote: > On sexta-feira, 30 de agosto de 2013 19:47:48, Syam wrote: >> On 31-Aug-2013 6:28 AM, "Thiago Macieira" wrote: >>> On sexta-feira, 30 de agosto de 2013 19:17:58, Scott Aron Bloom wrote: I use toUtf8()... Though it wouldn't surprise me

Re: [Interest] Another interesting problem I found on SO...

2013-08-31 Thread Jonathan Greig
Could possibly be a bug in the graphics driver...I bet if he watched Highlander with subtitles the answer would come easily. - Swyped from my droid. On Aug 31, 2013 6:22 AM, "Guido Seifert" wrote: http://stackoverflow.com/questions/18533343/colored-dots-on-using-text-element-in-qt5 This looks

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Syam Krishnan
On 08/31/2013 09:12 AM, Thiago Macieira wrote: > On sexta-feira, 30 de agosto de 2013 19:47:48, Syam wrote: > >> Am I right here? Of course, the assumption is that the original QString is >> simple English text. > Even “simple English” may contain characters not encodable in Latin 1… > > As I've ju

Re: [Interest] Converting std::string.c_str() code to use QString methods

2013-08-31 Thread Jonathan Greig
I'm also interested in why fopen shouldn't be used on Windows. The libembroidery code I work with is C89, uses fopen all over the place, and is cross-platform. The only place it doesn't work that I have tried is on arduino(which appears to have fdevopen equivalent but I'm unsure of whether that is

[Interest] Another interesting problem I found on SO...

2013-08-31 Thread Guido Seifert
http://stackoverflow.com/questions/18533343/colored-dots-on-using-text-element-in-qt5 This looks very strange. Is this a bug in Qt? Not much he could do wrong in this few lines of code. Guido ___ Interest mailing list Interest@qt-project.org http://lis

Re: [Interest] My First approach with QT 5.1 on MacOS : very disappointing

2013-08-31 Thread Vincent R.
Le 31.08.2013 02:52, Thiago Macieira a écrit : > On sexta-feira, 30 de agosto de 2013 16:03:49, Vincent R. wrote: >> I found this one : >> http://www.ics.com/blog/integrating-c-qml?page=1 >> >> I have downloaded the source code, started Creator and clicked on >> the >> Debug button but of course i