[Interest] Problems with bearermonitor example in Qt 4.7.1

2012-06-01 Thread Darryl Hunter
Hi all, I have tried running the bearermonitor example from Qt 4.7.1 (and Qt 4.8.1) on a number of different computers, running Windows 7. Sometimes it works, but on others it returns no configurations. I just tried running the bearermonitor example from Qt Mobility 1.1.0, and it worked fi

[Interest] How to display HTML entities in QLineEdit?

2012-06-01 Thread 程梁
Hi, there! I wonder if I could display HTML entites such as &(&) in QLineEdit? I mean not the code but the characters. Is there any functions or libs I could do this? Thank you for help me! -- Cheng Liang Nanjing, China http://www.devbean.info from: devb...@devbean.info

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Thiago Macieira
On sexta-feira, 1 de junho de 2012 11.54.44, John Weeks wrote: > QString enter_invoice_in::sqlFormatString(QDate *date); > > to > > QString enter_invoice_in::sqlFormatString(const QDate *date); Suggestion: const QDate &date -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread justin
The compiler is worried about you possibly storing that pointer to a date which in that context is a temporary. You aren't but the correct way to fix this in C++ is to pass date as a const reference parameter. You get the speed of a pointer, but much safer code. On 6/1/12 2:40 PM Robert Wood w

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread John Weeks
On 01-Jun-2012, at 11:40 AM, Robert Wood wrote: > &ui->dateInDateEdit->date() That creates a QDate and takes its address. Presumably, if the code works, sqlFormatString() isn't altering the input. I think you can fix it by changing QString enter_invoice_in::sqlFormatString(QDate *date); to Q

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Robert Wood
Adding QMAKE_CXXFLAGS=-fpermissive in additional arguments in the projects tab does the trick. I'd like to know why there is the change and how to fix it properly though. An example of a rogue lines is this: queryString += "\"" + sqlFormatString(&ui->dateInDateEdit->date()) + "\","; The routi

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Konstantin Tokarev
01.06.2012, 20:11, "Robert Wood" : > Folks, > > I have just upgraded to Mageia Linux 2 and am now getting this compile > error: > > error: taking address of temporary [-fpermissive] > > This was previously compiling just fine. > > I'm now running Creator 2.4.1 Based on Qt 4.8.0. > > Anyone know w

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Konstantin Tokarev
01.06.2012, 20:34, "Nikos Chantziaras" : > On 01/06/12 19:11, Robert Wood wrote: > >>  Folks, >> >>  I have just upgraded to Mageia Linux 2 and am now getting this compile >>  error: >> >>  error: taking address of temporary [-fpermissive] >> >>  This was previously compiling just fine. >> >>  I'

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Nikos Chantziaras
On 01/06/12 19:11, Robert Wood wrote: > Folks, > > I have just upgraded to Mageia Linux 2 and am now getting this compile > error: > > error: taking address of temporary [-fpermissive] > > This was previously compiling just fine. > > I'm now running Creator 2.4.1 Based on Qt 4.8.0. > > Anyone know

Re: [Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Harri Pasanen
On 06/01/2012 06:11 PM, Robert Wood wrote: > Folks, > > I have just upgraded to Mageia Linux 2 and am now getting this compile > error: > > error: taking address of temporary [-fpermissive] > > This was previously compiling just fine. > > I'm now running Creator 2.4.1 Based on Qt 4.8.0. > > Anyone

[Interest] error: taking address of temporary [-fpermissive]

2012-06-01 Thread Robert Wood
Folks, I have just upgraded to Mageia Linux 2 and am now getting this compile error: error: taking address of temporary [-fpermissive] This was previously compiling just fine. I'm now running Creator 2.4.1 Based on Qt 4.8.0. Anyone know what is going on please? Thanks! __

Re: [Interest] QSqlRelationalTabelModel fails to insert row

2012-06-01 Thread NoRulez
Update: A custom INSERT call with QSqlQuery works in the subclass, but I didn't find out why the insertRows() function doesn't work as expected.Best RegardsAm 30. Mai 2012 um 20:47 schrieb noru...@me.com:Hello, I have two tables (products, customers). In the subclass of the QSqlRelationalTableMode

Re: [Interest] Porting Qt app to windows

2012-06-01 Thread Till Oliver Knoll
Am 01.06.2012 um 13:49 schrieb Chasc : > ... > but all I get is something about a procedure entry point not being > located in QtCore4.dll. I am using Qt 4.7.4. "Dependency Walker" is also of great help when verifying link dependencies (check Google: there's a free version available, dependenc

Re: [Interest] Porting Qt app to windows

2012-06-01 Thread Muthulingam Ammaiappan
Hi Paul, http://doc.qt.nokia.com/4.7-snapshot/deployment-windows.html the above link will answer your question about deploying the Qt Applications on windows Thanks & Regards, Muthulingam On Fri, Jun 1, 2012 at 5:19 PM, Chasc wrote: > I have recently developed a C++ desktop application in Lin

[Interest] Porting Qt app to windows

2012-06-01 Thread Chasc
I have recently developed a C++ desktop application in Linux using Qt Creator and have successfully opened the project in the Windows version of Qt Creator. The app runs successfully in the windows Qt Creator IDE but fails to run independently on the Windows platform. I do not have the same problem

Re: [Interest] QSortFilterProxyModel::removeRows()

2012-06-01 Thread Paul England
On 06/01/2012 03:01 PM, Jordi Pujol wrote: > El dv 01 de 06 de 2012 a les 14:15 +0900, en/na Paul England va > escriure: >> Hi >> >> I wrote this really long email, and learned a lot about the problem in >> doing so. So, I guess it was time well spent. Still frustrated. >> Here's the summed up

Re: [Interest] [Development] About the QtDir::currentPath

2012-06-01 Thread Sivan Greenberg
Song, I moved this to interest@ is it is not about the development of Qt per se, but rather development using Qt. On Fri, Jun 1, 2012 at 11:05 AM, wrote: > Ok, thanks... I am using the qfilesystemengine_unix under another unix like > env, > so I can make a change in the ::rootPath for my case..