Re: [Interest] QThread & sleep on QMutex

2015-07-30 Thread Keith Gardner
> > And my question is just theoretical: is this approach good or such > sleep() implementation not so good and why? I.e. will such sleep() > release processor's time for another thread or not? > Using sleep() will allow the processor to work on a different thread. The issue is that sleep() will m

Re: [Interest] .rcc files and modules

2015-06-29 Thread Keith Gardner
On Mon, Jun 29, 2015 at 3:09 PM Jérôme Godbout wrote: > Hi, > I'm looking for a way to load a specific resources files (.rcc) when a > modules or a plugins is used. > > Small example: > > Module A (qml module with qmldir that include plugin A) > Plugin A (c++ implementation for some part of Modul

Re: [Interest] Cross platform accelerated instructions framework

2015-05-14 Thread Keith Gardner
On Thu, May 14, 2015 at 6:39 AM Nuno Santos wrote: > Hi, > > Sorry if the title is not the most appropriated. > > I’m developing an app that will be target for iOS/Android/x86/x86_64 > > Since this is CPU intensive application I think that I will reach a point > were assembly and vector instructi

Re: [Interest] How to get Qt5Cored.pdb from Qt5.4.1 installer

2015-04-30 Thread Keith Gardner
On Thu, Apr 30, 2015 at 3:05 PM Thiago Macieira wrote: > On Thursday 30 April 2015 16:01:43 Michael Jackson wrote: > > Is there a way to get the *.pdb files for the Qt 5.4.1 that I downloaded > > from the Qt.io website. We are crashing when we quit our app somewhere in > > the Qt5Core and in visu

Re: [Interest] json file handling

2015-04-15 Thread Keith Gardner
On Wed, Apr 15, 2015 at 9:36 AM André Somers wrote: > Mathieu Slabbinck schreef op 15-4-2015 om 16:17: > > Hi, > > > > I'm using Qt5 to write json objects to a file. > > The json structure contains one array with x data elements, like: > > > > { > > "datapointsarray": [ > > { > >

Re: [Interest] ListModels with sections, not grouping by section

2015-03-26 Thread Keith Gardner
On Thu, Mar 26, 2015 at 11:30 AM Jason H wrote: > So I'm trying to use sections, and it seems that the data must be > explicit ordered by section otherwise you get the section repeated > whenever it changes that is to say: > [ > { 'a':'A' 'b':'1'} > { 'a':'B' 'b':'2'} > { 'a':'C' 'b':'1'}

Re: [Interest] Is there a command line call to qmake to test the bit width?

2015-03-04 Thread Keith Gardner
If you are trying to figure out which qmake created the Makefile your script is using, you can try call "make qmake -n". This will give you the qmake command that is being used including the path to qmake itself. You can then query that qmake for the QMAKE_SPEC it is defaults to (linux-g++-64 or

Re: [Interest] [Semi OT] Concurrent (multi-threaded) read/write disk IO?

2015-02-05 Thread Keith Gardner
> > Does it make sense to guarantee/enforce "sequential (exclusive) access to > the harddisk" on application level, or would I re-invent functionality > already present in the underlying OS/disk driver (and maybe even sacrifice > performance)? > It depends on the task at hand. If you know you are

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Keith Gardner
On Thu Jan 15 2015 at 12:33:59 AM Hamish Moffatt wrote: > I'm trying to port our app from Qt 4.8 to 5.4. Currently working in MSVC > 2013, and using the pre-built Qt binaries for that environment. > > We have about 440 files being MOCed during build. On 5.4, each file is > taking 2-3 seconds mean

Re: [Interest] QML animation flickering on Ubuntu

2015-01-13 Thread Keith Gardner
> > Can something further be done to avoid flickering? > > If you are just translating the item by changing the X value, try using the XAnimator (http://doc.qt.io/qt-5/qml-qtquick-xanimator.html). It performs the movement on the render thread instead of the gui thread. I have experienced big perf

Re: [Interest] QList operator[]

2015-01-10 Thread Keith Gardner
> > > >I added a couple lines of code to an app and suddenly it started > >chewing through memory at an unbelievable rate. I watched it > >get up to 12 GB at which point it hit my virtual memory limit ... > > > > One of the added lines was: > > > >const CultureItem& it = culture.it

Re: [Interest] QList operator[]

2015-01-09 Thread Keith Gardner
> > QList can return a const & with the [] operator [1]. The documantation > even says it's the same as .at(). > > [1] http://doc.qt.io/qt-5/qlist.html#operator-5b-5d-2 > > That is true if the QList is const when calling the function. If it is not, the other operator [1] documentation describes th

Re: [Interest] Syntax error compiling 5.3.2

2014-10-29 Thread Keith Gardner
I know that gcc 4.4 is also available for CentOS 5.8 through yum. Could you update to this version? It still fulfills the requirement of being shipped with the OS. On Wed, Oct 29, 2014 at 12:22 PM, Scott Aron Bloom < scott.bl...@onshorecs.com> wrote: > fontdatabases/fontconfig/qtfontconfigdata

Re: [Interest] [OS X] qmake - "Could not resolve SDK path for 'macosx10.8'"

2014-10-02 Thread Keith Gardner
On Thu, Oct 2, 2014 at 1:11 PM, Till Oliver Knoll < till.oliver.kn...@gmail.com> wrote: > Hi, > > This might be silly, but "qmake / Qt 5.3.2 stopped working for me" on OS > X 10.9.5 with latest Xcode 6.0.1 (the later was updated a couple of days > ago, IIRC). > > Whenever I try to run qmake on a c

Re: [Interest] Running Qt 5 Application on WinXP

2014-07-08 Thread Keith Gardner
On Tue, Jul 8, 2014 at 12:48 PM, Till Oliver Knoll < till.oliver.kn...@gmail.com> wrote: > Am 08.07.2014 um 19:24 schrieb Duane : > > > I have an application built with VS 2012 (with the tool chain XP > > support) using Qt 5.3. It runs fine on Windows 7 and 8. > > > > When I try to run it on a bo

Re: [Interest] How to speed-up chameleons

2014-06-11 Thread Keith Gardner
> > I have one question to you. Why new syntax of QObject::connect() improve > performance for a 5%. > > I mean that if in code change > > connect( sender, SIGNAL( signal() ), receiver, SLOT( slot() ) ); > > to > > connect( sender, &Sender::signal, receiver, &Receiver::slot ); > > then code works f

Re: [Interest] QML/Quick PathView with custom animation without user interaction

2014-04-26 Thread Keith Gardner
On Saturday, April 26, 2014, Cornelius Hald wrote: > Hi, > > I'm looking for a way to define an animation on PathView that should run > without user interaction. > > Setting the 'currentIndex' property gives a rather boring animation that > simply accelerates, decelerates and stops at the selecte

Re: [Interest] format of QString

2014-04-04 Thread Keith Gardner
You need to make a capture group by putting () around the expected text. Once you do that, you will get a list of size 1 from capturedTexts. QRegularExpression expression("^([cfmt]_\\d\\d\\d\\d\\d\\d\\.rcd)$"); On Fri, Apr 4, 2014 at 9:50 AM, sarah jones wrote: > Ok this is getting weird > I

Re: [Interest] metaObject from class name

2014-02-14 Thread Keith Gardner
> > QMetaType::metaObjectForType is not documented. > > http://qt-project.org/doc/qt-5/qmetatype.html#metaObjectForType It was introduced in Qt 5.0. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] metaObject from class name

2014-02-14 Thread Keith Gardner
If you register the class with QMetaType with Q_DECLARE_METATYPE(Class*), you can then call QMetaType::type("Class"). With the returned int, you can then call QMetaType::metaObjectForType(integer). I think this is what you are looking for. class Foo : public QObject { ... }; Q_DECLARE_METATY

Re: [Interest] bad_alloc raised : Amout of RAM available ?

2013-07-08 Thread Keith Gardner
> Besides, I still need to know how much memory is left available for my > app, that is running stats on large amounts of real time data. So that > I could run stats on as large a sample as possible on a given target > machine. Is your application a 32-bit app? Under Windows, applications are re