Re: [Interest] Problem with QPixmap.

2015-04-17 Thread Igor Mironchik
Hi, On Sat, 18 Apr 2015 08:03:13 +0300, Igor Mironchik wrote: > Hi, William. > > On Sat, 18 Apr 2015 01:54:27 +0300, william.croc...@analog.com > wrote: > >> On 04/17/2015 12:53 PM, Igor Mironchik wrote: >>> Hi, guys. >>> >>> I have one problem: pixmap "usb-disconnected.png" doesn't draws

Re: [Interest] Problem with QPixmap.

2015-04-17 Thread Igor Mironchik
Hi, William. On Sat, 18 Apr 2015 01:54:27 +0300, william.croc...@analog.com wrote: > On 04/17/2015 12:53 PM, Igor Mironchik wrote: >> Hi, guys. >> >> I have one problem: pixmap "usb-disconnected.png" doesn't draws >> correctly. Draws >> absolutely nothing. And if click on this button applica

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Thiago Macieira
On Wednesday 15 April 2015 16:45:57 Thiago Macieira wrote: > Hello > > We're running into problems with QCoreApplication::notify() and auxiliary > threads in Qt. Details can be found in [1] and [2]. > [1] http://lists.qt-project.org/pipermail/development/2015-April/021053.html > [2] https://coder

Re: [Interest] sqlite

2015-04-17 Thread Thiago Macieira
On Friday 17 April 2015 21:57:44 Jason H wrote: > I've used SQLite as a table store pretty extensively and I can say: > > 1. It works as advertised. It allows multiple processes to access the same > database safely. Threads no. Processes yes. > 2. Multiple process performance > is low. It may me

Re: [Interest] Problem with QPixmap.

2015-04-17 Thread william.croc...@analog.com
On 04/17/2015 12:53 PM, Igor Mironchik wrote: > Hi, guys. > > I have one problem: pixmap "usb-disconnected.png" doesn't draws correctly. > Draws > absolutely nothing. And if click on this button application crashes. What is > the > problem? Thank you. > Have you added the .png file to your .qrc

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread John Weeks
> On 17 Apr 2015, at 2:46 pm, Alejandro Exojo wrote: >>> 4) filter events being delivered (remove from queue / compress)? >> >> We do this. > > Could you elaborate a bit on how do you do it? My answer was a bit short, wasn't it? I was responding to the part about filtering. We use only the ab

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Alejandro Exojo
El Thursday 16 April 2015, John Weeks escribió: > > 4) filter events being delivered (remove from queue / compress)? > > We do this. Could you elaborate a bit on how do you do it? Filtering events is easy, but when I searched a bit in the past about this, I found that there is no public API for

Re: [Interest] sqlite

2015-04-17 Thread Jason H
I've used SQLite as a table store pretty extensively and I can say: 1. It works as advertised. It allows multiple processes to access the same database safely. Threads no. Processes yes. 2. Multiple process performance is low. It may me adequate if there is not a lot of concurrency, just a lot o

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Guido Seifert
Thanks, got it Just a bit different than you proposed :-) My problem was to get the thrown object in the terminate handler. I searched for that, but it looks like there really is no such function. However, with this trick in the custom terminate it is possible to get the desired object in

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Thiago Macieira
On Friday 17 April 2015 09:03:08 Thiago Macieira wrote: > On Friday 17 April 2015 17:53:40 Guido Seifert wrote: > > I know, but it still is not too convenient. In the console I get only > > something like "terminate called after throwing an instance of > > ''. No indication where the exception was

[Interest] Problem with QPixmap.

2015-04-17 Thread Igor Mironchik
Hi, guys. I have one problem: pixmap "usb-disconnected.png" doesn't draws correctly. Draws absolutely nothing. And if click on this button application crashes. What is the problem? Thank you. -- Best Regards, Igor Mironchik. usb_button.cpp Description: Binary data usb_button.hpp Descript

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Thiago Macieira
On Friday 17 April 2015 17:53:40 Guido Seifert wrote: > I know, but it still is not too convenient. In the console I get only > something like "terminate called after throwing an instance of > ''. No indication where the exception was thrown. To see this I > have to find and examine the core, or I

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Matthew Woehlke
On 2015-04-17 08:17, Bo Thorsen wrote: > On 04/17/2015 12:12 PM, Berkay Elbir wrote: >> Hello All, >> >> I want to ask a question to you to be certain. Is void qsort() function >> obsolete? Should we use std::sort instead of this function? Because I >> have a priority list and need to sort it. > >

Re: [Interest] iOS app store rejection - microphone consent?

2015-04-17 Thread Jason H
Thanks Yoann. I need this patch urgently.  INC-607995   Sent: Friday, April 17, 2015 at 5:30 AM From: "Lopes Yoann" To: "spami...@gmail.com" Cc: "interest@qt-project.org" Subject: Re: [Interest] iOS app store rejection - microphone consent? This is a bug in Qt. The camera plugin always crea

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Guido Seifert
> I have no need of knowing > which functions those are and how they operate because I don't use > exceptions, > so I can't help further. :-) And I don't because I usually use Qt. And in the few of my projects, which did not use qt, exceptions were forbidden. > You don't need a log output

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Thiago Macieira
On Friday 17 April 2015 17:27:39 Guido Seifert wrote: > > It prints the exception type to stderr. If you want to log something > > different, install a different terminate handler. > > Does this work? I don't see how a terminate handler gets the thrown object. There's a function to get the curren

Re: [Interest] Survey: do you override QCoreApplication::notify? Why?

2015-04-17 Thread Guido Seifert
> It prints the exception type to stderr. If you want to log something > different, > install a different terminate handler. Does this work? I don't see how a terminate handler gets the thrown object. A terminate handler takes no parameter and returns void. I am using notify only with use cas

Re: [Interest] sqlite

2015-04-17 Thread Alejandro Exojo
El Friday 17 April 2015, Bo Thorsen escribió: > > In practice, we found that it results in problems in practise, even if > > it may work in theory. Perhaps it is due to the actual sqlite, perhaps > > it is due to the fact that it really is just a file and it is the > > (networked) file access that

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 02:36 PM, André Somers wrote: > Bo Thorsen schreef op 17-4-2015 om 14:24: >> On 04/17/2015 02:10 PM, André Somers wrote: >>> Bo Thorsen schreef op 17-4-2015 om 13:48: On 04/17/2015 10:25 AM, Graham Labdon wrote: > Hi > My application makes use of an sqlite database that n

Re: [Interest] Include error in a ui generated code

2015-04-17 Thread André Somers
Etienne Sandré-Chardonnal schreef op 17-4-2015 om 10:35: > Dear all, > > I'm struggling with this compilation error since this morning: > > ui_mainwindow.h:13: error: QtGui/QAction: No such file or directory > #include > > As the file name suggests, this is a header generated by qmake from a .ui >

Re: [Interest] Include error in a ui generated code

2015-04-17 Thread Etienne Sandré-Chardonnal
Hi, I had some old QT4 build dir left in my PATH, thanks. I had tried adding "-v" to qmake parameters in my project settings, and it did return "5.4.1" so I did not expect that uic from qt4 was called. Thanks again, Etienne 2015-04-17 14:24 GMT+02:00 Andreas Pakulat : > Hi, > > The header

Re: [Interest] sqlite

2015-04-17 Thread André Somers
Bo Thorsen schreef op 17-4-2015 om 14:24: > On 04/17/2015 02:10 PM, André Somers wrote: >> Bo Thorsen schreef op 17-4-2015 om 13:48: >>> On 04/17/2015 10:25 AM, Graham Labdon wrote: Hi My application makes use of an sqlite database that needs to be shared amongst multiple insta

Re: [Interest] sqlite

2015-04-17 Thread Jason Kretzer
I do have to agree with this. I was in a similar situation and had to use sqlite (due to size constraints) as a backend for a php site. The locks make it very problematic for multiple processes to access. -Jason //--// Jason R. Kretzer Lead Application Develo

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 02:10 PM, André Somers wrote: > Bo Thorsen schreef op 17-4-2015 om 13:48: >> On 04/17/2015 10:25 AM, Graham Labdon wrote: >>> Hi >>> My application makes use of an sqlite database that needs to be shared >>> amongst >>> multiple instantiations of the application. >>> Can anyone plea

Re: [Interest] Include error in a ui generated code

2015-04-17 Thread Andreas Pakulat
Hi, On Fri, Apr 17, 2015 at 10:35 AM, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote: > Dear all, > > I'm struggling with this compilation error since this morning: > > ui_mainwindow.h:13: error: QtGui/QAction: No such file or directory > #include > > As the file name suggests, this i

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Bo Thorsen
On 04/17/2015 12:12 PM, Berkay Elbir wrote: Hello All, I want to ask a question to you to be certain. Is void qsort() function obsolete? Should we use std::sort instead of this function? Because I have a priority list and need to sort it. Slightly off-topic: Don't implement a priority queue th

Re: [Interest] sqlite

2015-04-17 Thread André Somers
Bo Thorsen schreef op 17-4-2015 om 13:48: > On 04/17/2015 10:25 AM, Graham Labdon wrote: >> Hi >> My application makes use of an sqlite database that needs to be shared >> amongst >> multiple instantiations of the application. >> Can anyone please suggest how I can implement this such that if one

Re: [Interest] sqlite

2015-04-17 Thread Bo Thorsen
On 04/17/2015 10:25 AM, Graham Labdon wrote: > Hi > My application makes use of an sqlite database that needs to be shared amongst > multiple instantiations of the application. > Can anyone please suggest how I can implement this such that if one > instantiation of the application updates the data

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Giuseppe D'Angelo
Il 17/04/2015 12:16, Dmitry Volosnykh ha scritto: As far as I know, a plenty of methods from QtAlgorithms are marked as obsolete since Qt 5.2. Regarding qSort() you may refer to official documentation: http://doc.qt.io/qt-5/qtalgorithms-obsolete.html#qSort. http://doc.qt.io/qt-5/qtalgorithms.ht

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Berkay Elbir
Thanks. I used std::sort that is most reliable way. Berkay On Fri, Apr 17, 2015 at 1:22 PM, André Somers wrote: > Berkay Elbir schreef op 17-4-2015 om 12:12: > > Hello All, > > I want to ask a question to you to be certain. Is void qsort() function > obsolete? Should we use std::sort instead

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread André Somers
Berkay Elbir schreef op 17-4-2015 om 12:12: Hello All, I want to ask a question to you to be certain. Is void qsort() function obsolete? Should we use std::sort instead of this function? Because I have a priority list and need to sort it. Yes, in general the things you can find in should be

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Dmitry Volosnykh
As far as I know, a plenty of methods from QtAlgorithms are marked as obsolete since Qt 5.2. Regarding qSort() you may refer to official documentation: http://doc.qt.io/qt-5/qtalgorithms-obsolete.html#qSort. Also, you may read more about this here: http://lists.qt-project.org/pipermail/development

Re: [Interest] qsort() Obsolete?

2015-04-17 Thread Tomasz Siekierda
On 17 April 2015 at 12:12, Berkay Elbir wrote: > Hello All, > > I want to ask a question to you to be certain. Is void qsort() function > obsolete? Should we use std::sort instead of this function? Because I have a > priority list and need to sort it. yes, it is recommended to use std::sort.

[Interest] qsort() Obsolete?

2015-04-17 Thread Berkay Elbir
Hello All, I want to ask a question to you to be certain. Is void qsort() function obsolete? Should we use std::sort instead of this function? Because I have a priority list and need to sort it. Best Regards, Berkay ___ Interest mailing list Interest@q

Re: [Interest] iOS app store rejection - microphone consent?

2015-04-17 Thread Lopes Yoann
This is a bug in Qt. The camera plugin always creates an audio AVCaptureDeviceInput and add it to the AVCaptureSession, which in turn causes the microphone permission prompt. That audio capture input should be added only when recording video. I created a bug report for that: https://bugreports.q

[Interest] Include error in a ui generated code

2015-04-17 Thread Etienne Sandré-Chardonnal
Dear all, I'm struggling with this compilation error since this morning: ui_mainwindow.h:13: error: QtGui/QAction: No such file or directory #include As the file name suggests, this is a header generated by qmake from a .ui The QAction header is in QWidgets and not in QtGui, so the error is cle

[Interest] sqlite

2015-04-17 Thread Graham Labdon
Hi My application makes use of an sqlite database that needs to be shared amongst multiple instantiations of the application. Can anyone please suggest how I can implement this such that if one instantiation of the application updates the database then any other instantiations that are running get