Re: [Interest] Build Qt from source in 32bit (-platform macx-clang-32)

2015-05-27 Thread Nuno Santos
This is the qmake.stash file content. I can’t find anything mean-full here. Does this rings you any bell? QMAKE_XCODE_DEVELOPER_PATH = /Applications/Xcode.app/Contents/Developer QMAKE_XCODE_VERSION = 6.3.2 QMAKE_MAC_SDK.macosx.path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pl

Re: [Interest] Poor QMethod::invoke performance across threads on i.MX53

2015-05-27 Thread Bo Thorsen
Den 27-05-2015 kl. 23:16 skrev Matthew Woehlke: > On 2015-05-27 16:41, Thiago Macieira wrote: >> On Wednesday 27 May 2015 15:02:36 Matthew Woehlke wrote: >>> On 2015-05-18 03:46, Thiago Macieira wrote: On Thursday 14 May 2015 18:18:52 Robert Daniels wrote: > moveToThread(this); >>

Re: [Interest] Build Qt from source in 32bit (-platform macx-clang-32)

2015-05-27 Thread René J . V . Bertin
On Wednesday May 27 2015 23:37:34 Nuno Santos wrote: > Thanks Thiago > > I always delete the source folder and start with a new one when configuration > changes drastically. I have built Qt from a clean source dir. > > Maybe something is missing in the configure line then? > > configure -prefix

Re: [Interest] First timer iOS woes

2015-05-27 Thread Daniel França
Thanks for the link Nuno :) It was, indeed, related to the .plist. I'll sleep now and get back to make it work tomorrow! Best, Daniel Em qui, 28 de mai de 2015 às 00:46, Nuno Santos escreveu: > Daniel, > > From the log: > > May 28 00:37:18 ml95487 org.qt-project.qt-creator.iosTool[49361] : > E

Re: [Interest] First timer iOS woes

2015-05-27 Thread Daniel França
It seems that there was a problem with my plist file using some old references, now I can run the app from my device... it's crashing, but at least I can run it, so I'll have a look at the log files to try to figure out what's happening. Em qui, 28 de mai de 2015 às 00:43, Daniel França escreveu

Re: [Interest] First timer iOS woes

2015-05-27 Thread Nuno Santos
Daniel, From the log: May 28 00:37:18 ml95487 org.qt-project.qt-creator.iosTool[49361] : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7fc35a6231a0 {Error=PackagePatchFailed, ErrorDescription=Could not hardlink copy /U

Re: [Interest] First timer iOS woes

2015-05-27 Thread Daniel França
Hi Nuno, thanks for the quick reply. >> It seems you are using a device with 6.3. Sorry, I mistyped, it's IOS 8.3 :) I'm not sure if it helps but the log error is this one: http://pastebin.com/fkJJAMhq If I could run it on the device would be great, but at the moment it seems that it's closer to

Re: [Interest] Build Qt from source in 32bit (-platform macx-clang-32)

2015-05-27 Thread Nuno Santos
Thanks Thiago I always delete the source folder and start with a new one when configuration changes drastically. I have built Qt from a clean source dir. Maybe something is missing in the configure line then? configure -prefix /Users/nsantos/Qt/5.4/clang_32 -platform macx-clang-32 -commercial

Re: [Interest] Poor QMethod::invoke performance across threads on i.MX53

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 17:16:54 Matthew Woehlke wrote: > Right. An example probably helps. What's wrong with this approach? > > class MyThread : public QThread { ... } // has moveToThread(this) > > int main() > { > auto* t = new MyThread; > t.start(); > // ... > t.wait();

Re: [Interest] First timer iOS woes

2015-05-27 Thread Nuno Santos
It is hard to tell. I had already issues for having the latest version of iOS 8 and not the latest version of Xcode. I don’t use simulator from QtCreator, for development I use the desktop. I only test my apps on real devices. It seems you are using a device with 6.3. Can’t you test with a more

Re: [Interest] SQLite

2015-05-27 Thread m...@rpzdesign.com
Qt5 + SQLITE + QJsonDocument ==> Degrees of freedom On 5/27/2015 3:18 PM, Alex Strickland wrote: > On 2015/05/27 09:39 AM, Graham Labdon wrote: > >> I am planning to use a SQLite database in my application to store >> application data. >> The application is large and complex so we are taking a ph

Re: [Interest] First timer iOS woes

2015-05-27 Thread Daniel França
Thanks Nuno, After found out that XCode 6.2 doesn't work with IOS 6.3 I upgraded my OSX/XCode. A simple dummy application I created on XCode works fine, both on the simulator and in the device but Qt keeps failing. First I to got an error saying that iphone-compiler was not compatible... so I

Re: [Interest] debugging: how to get meaningful QObject information in a command line session

2015-05-27 Thread Alejandro Exojo
El Tuesday 26 May 2015, René J.V. Bertin escribió: > I have looked some more, haven't found anything in the Ubuntu repository. I > presume that the debugger plugin (or however it was called) that can be > installed through Qt Creator's toolchain preferences is strictly for use > with that IDE? I d

Re: [Interest] Interesting problem with properties.

2015-05-27 Thread Matthew Woehlke
On 2015-05-27 17:23, Igor Mironchik wrote: > 27.05.2015 23:41, Koehne Kai пишет: >>> sendButton = new QtMWidgets::NavigationButton( >>>QtMWidgets::NavigationButton::Right, QObject::tr( "Send" ), q ); >>> >>> First setText() invokes with "Send" text from constructor of >>> NavigationButt

Re: [Interest] Interesting problem with properties.

2015-05-27 Thread Igor Mironchik
Hi, 27.05.2015 23:41, Koehne Kai пишет: sendButton = new QtMWidgets::NavigationButton( QtMWidgets::NavigationButton::Right, QObject::tr( "Send" ), q ); First setText() invokes with "Send" text from constructor of NavigationButton, it's normal. But I have second

Re: [Interest] SQLite

2015-05-27 Thread Alex Strickland
On 2015/05/27 09:39 AM, Graham Labdon wrote: > I am planning to use a SQLite database in my application to store application > data. > The application is large and complex so we are taking a phased delivery > approach. This will mean that the structure of the database will change over > time an

Re: [Interest] Poor QMethod::invoke performance across threads on i.MX53

2015-05-27 Thread Matthew Woehlke
On 2015-05-27 16:41, Thiago Macieira wrote: > On Wednesday 27 May 2015 15:02:36 Matthew Woehlke wrote: >> On 2015-05-18 03:46, Thiago Macieira wrote: >>> On Thursday 14 May 2015 18:18:52 Robert Daniels wrote: moveToThread(this); >>> >>> This is wrong. Never do "moveToThread(this)", sin

Re: [Interest] Is QLocalSocket reentrant?

2015-05-27 Thread Bo Thorsen
Den 22-05-2015 kl. 14:43 skrev Calogero Mauceri: > > > Il 5/22/2015 2:35 PM, Calogero Mauceri ha scritto: >> Hi all, >> >> sorry if this is a stupid question, but I'm having some weird memory >> corruption problems when using QLocalSocket in multiple threads. >> >> I have a server process, acceptin

Re: [Interest] SQLite

2015-05-27 Thread Bo Thorsen
Den 27-05-2015 kl. 10:51 skrev André Somers: > Graham Labdon schreef op 27-5-2015 om 09:39: >> Hi >> I am planning to use a SQLite database in my application to store >> application data. >> The application is large and complex so we are taking a phased delivery >> approach. This will mean that t

Re: [Interest] Poor QMethod::invoke performance across threads on i.MX53

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 15:02:36 Matthew Woehlke wrote: > On 2015-05-18 03:46, Thiago Macieira wrote: > > On Thursday 14 May 2015 18:18:52 Robert Daniels wrote: > >> moveToThread(this); > > > > This is wrong. Never do "moveToThread(this)", since it's very difficult to > > then destroy the

Re: [Interest] Interesting problem with properties.

2015-05-27 Thread Koehne Kai
>>> sendButton = new QtMWidgets::NavigationButton( >>> QtMWidgets::NavigationButton::Right, QObject::tr( "Send" ), q ); >>> >>> First setText() invokes with "Send" text from constructor of >>> NavigationButton, it's normal. But I have second invoke with "&Send". >>> >>> What is the proble

Re: [Interest] Interesting problem with properties.

2015-05-27 Thread Igor Mironchik
Hi, 27.05.2015 22:07, Matthew Woehlke пишет: > On 2015-05-23 07:00, Igor Mironchik wrote: >> I have class NavigationButton that derived from QAbstractButton. >> NavigationButton redefines property QString: text. >> >> In my application I have one such button and initialize it with the >> following

Re: [Interest] Build Qt from source in 32bit (-platform macx-clang-32)

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 20:08:38 Nuno Santos wrote: > configure -prefix /Users/nsantos/Qt/5.4/clang_32 -platform macx-clang-32 > -commercial -release -nomake examples -nomake tools -nomake tests -opengl > desktop -skip webkit -skip multimedia > > However, the bundle that was built with this versi

Re: [Interest] Interesting problem with properties.

2015-05-27 Thread Matthew Woehlke
On 2015-05-23 07:00, Igor Mironchik wrote: > I have class NavigationButton that derived from QAbstractButton. > NavigationButton redefines property QString: text. > > In my application I have one such button and initialize it with the > following code: > > sendButton = new QtMWidgets::Navigatio

[Interest] Build Qt from source in 32bit (-platform macx-clang-32)

2015-05-27 Thread Nuno Santos
Hi, Maybe i’m repeating myself with this question. Sorry if I do. I need to be able to compile a bundle in 32 bit mode. This bundle will be open by a 32 bit program otherwise it will fail to open. I have compiled Qt from source with the following configure options: configure -prefix /Users/nsa

Re: [Interest] Poor QMethod::invoke performance across threads on i.MX53

2015-05-27 Thread Matthew Woehlke
On 2015-05-18 03:46, Thiago Macieira wrote: > On Thursday 14 May 2015 18:18:52 Robert Daniels wrote: >> moveToThread(this); > > This is wrong. Never do "moveToThread(this)", since it's very difficult to > then > destroy the QThread object. This is unrelated to the problem and it's > pro

Re: [Interest] Qt/iOS subclassing and/or delegating

2015-05-27 Thread Ben Lau
On 28 May 2015 at 02:07, maitai wrote: > Hello all, > > I've started to port on iOS and need to override some methods, like we > do easily through Java on Qt/Android. I succeeded to implement an > appDelegate in objective-C that works for some events like openURL and > such, but for instance I al

[Interest] Qt/iOS subclassing and/or delegating

2015-05-27 Thread maitai
Hello all, I've started to port on iOS and need to override some methods, like we do easily through Java on Qt/Android. I succeeded to implement an appDelegate in objective-C that works for some events like openURL and such, but for instance I also need to lock automatic screen rotation in som

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 17:34:11 Rainer Wiesenfarth wrote: > The QWebSocketServer does not have a parent. The problem does not occur > with this class itself, but with QNativeSocketEngine, which seems to > exist somewhere in the depth of Qt. > > The QNativeSocketEngine was created by Qt interna

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Tony Rietwyk
Rainer wrote: > I would like to add a QWebSocketServer to an existing application. I would > like to have all its operation handled by a thread different from the GUI > thread to get communication separated from the GUI part. If you create the QWebSocketServer in the thread's run override, does

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 10:53:06 Jérôme Godbout wrote: > removing parent is essential http://doc.qt.io/qt-5/qobject.html#moveToThread > "The object cannot be moved if it has a parent." > The children will follow to the new thread. > > For the reparenting, maybe you can shed some light on it. From

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Rainer Wiesenfarth
Am 27.05.2015 um 15:49 schrieb Jérôme Godbout: Before making the moveToThread(), remove the parent of the object, ->setParent(nullptr); Once moved, you can reparent with object into that Thread. The QWebSocketServer does not have a parent. The problem does not occur with this class itself, but

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Jérôme Godbout
removing parent is essential http://doc.qt.io/qt-5/qobject.html#moveToThread "The object cannot be moved if it has a parent." The children will follow to the new thread. For the reparenting, maybe you can shed some light on it. From what I understand, moveToThread, make that thread responsible to

Re: [Interest] SQLite

2015-05-27 Thread Jason H
There used to be an ORM for Qt that was promoted on this list. http://lmgtfy.com/?q=qt+orm Aside from that, I don't use ORMs, and I just have a general "settings" table of key value pairs one of which is the schema version. However you must write your own upgrade routine. When dealing with post

Re: [Interest] App crashing in ig4icd32.dll (Intel HD Graphics 3000)

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 17:45:54 EXL wrote: > On the GNU/Linux distro with this graphics chip QtQuick apps still works > perfectly without any flaws. Because the driver is completely different. The Intel drivers for Windows and the intel Open Source graphics drivers for Linux share no code. Any

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 09:49:06 Jérôme Godbout wrote: > Before making the moveToThread(), remove the parent of the object, > ->setParent(nullptr); > Once moved, you can reparent with object into that Thread. No, you cannot. The parent must be another object that lives in the current thread. --

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Jérôme Godbout
Before making the moveToThread(), remove the parent of the object, ->setParent(nullptr); Once moved, you can reparent with object into that Thread. Note, if using QItem there's also the QQmlEngine that own the item that is tie to a thread. On Wed, May 27, 2015 at 3:43 AM, Rainer Wiesenfarth < rai

Re: [Interest] Random problems with QSettings on Android

2015-05-27 Thread Edward Sutton
>Does anyone here had problems with QSettings persistence on Android device? >I’m having random and occasional reports from users on Android telling me that >settings don’t persist. I have not seen *random* issues with QSettings on Android. I have seen issues with users swiping the app and closi

[Interest] QtQuick: Get information about module from which a custom QML item was loaded

2015-05-27 Thread Alex Leutgöb
Hi, Is there a possibility to get information about the QML installed module from which a custom QML item was loaded? I'm particularly interested in the major and minor version of the QML import statement. I saw that it's possible to read out the revision of a certain QML property, I would how

Re: [Interest] App crashing in ig4icd32.dll (Intel HD Graphics 3000)

2015-05-27 Thread EXL
Hi, On Windows, I have problems with the rendering of text and some textures. While support for OpenGL 2.0 is declared by the manufacturer. I use latest available graphics drivers. My GPU is "Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller". If I use in my QtQuick apps:

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Rainer Wiesenfarth
Am 27.05.2015 um 11:48 schrieb Elvis Stansvik: 2015-05-27 Rainer Wiesenfarth: > Question: Is it possible to use QWebSocketServer in a thread other > than the GUI thread? How? I think the real question is why you would want to do that. [...] In my special case: to create a communication service

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Elvis Stansvik
2015-05-27 9:43 GMT+02:00 Rainer Wiesenfarth : > (Qt 5.3.2 Windows msvc-2010 64bit) > > I would like to add a QWebSocketServer to an existing application. I would > like to have all its operation handled by a thread different from the GUI > thread to get communication separated from the GUI part.

Re: [Interest] SQLite

2015-05-27 Thread Graham Labdon
Thanks -Original Message- From: interest-bounces+graham.labdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of André Somers Sent: 27 May 2015 09:52 To: interest@qt-project.org Subject: Re: [Interest] SQLite Graham

Re: [Interest] SQLite

2015-05-27 Thread André Somers
Graham Labdon schreef op 27-5-2015 om 09:39: > Hi > I am planning to use a SQLite database in my application to store application > data. > The application is large and complex so we are taking a phased delivery > approach. This will mean that the structure of the database will change over > tim

Re: [Interest] SQLite

2015-05-27 Thread Alex Strickland
On 2015/05/27 09:39 AM, Graham Labdon wrote: > I am planning to use a SQLite database in my application to store application > data. > The application is large and complex so we are taking a phased delivery > approach. This will mean that the structure of the database will change over > time an

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Carel Combrink
Thiago, > So TEST_3 isn't empty. Only the output from message was empty because it > performed an extra expansion. > Thanks for the explanation, it makes a sense now. Michael, > I would use TEST_3=$$(FOO) instead of TEST_3=$(FOO) This does work correctly thanks. Reading the documentation on

[Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Rainer Wiesenfarth
(Qt 5.3.2 Windows msvc-2010 64bit) I would like to add a QWebSocketServer to an existing application. I would like to have all its operation handled by a thread different from the GUI thread to get communication separated from the GUI part. However, when I use moveToThread with the QWebServer

[Interest] SQLite

2015-05-27 Thread Graham Labdon
Hi I am planning to use a SQLite database in my application to store application data. The application is large and complex so we are taking a phased delivery approach. This will mean that the structure of the database will change over time and that we need to provide backwards compatibility. So

Re: [Interest] Sorting QSortFilterProxyModel with QML

2015-05-27 Thread André Somers
Mark Gaiser schreef op 26-5-2015 om 17:02: On Tue, May 26, 2015 at 12:35 PM, André Somers > wrote: I ended up writing my own class that I export to QML for this. It subclasses QSortFilterProxyModel and exposes a nice QML-friendly API for doing filte

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 00:10:19 Thiago Macieira wrote: > On Wednesday 27 May 2015 09:03:24 Carel Combrink wrote: > > Am I doing something wrong? > > Yes, you're expecting qmake to observe environment variables. It does not. > Make honours and processes them, but that's run after qmake has finish

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 09:03:24 Carel Combrink wrote: > Am I doing something wrong? Yes, you're expecting qmake to observe environment variables. It does not. Make honours and processes them, but that's run after qmake has finished running and has written the Makefile. Two separate and indepen

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Michael Sué
Hi, I would use TEST_3=$$(FOO) instead of TEST_3=$(FOO) - Michael. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Carel Combrink
Hi, How do one test if an environmental variable is set from qmake? I have searched a lot but can't get the code working. People and documentation point to isEmpty() but that does not achieve the correct result, see below: My Code in my pro file: isEmpty(TEST_1) { message(Test 1: Empty ($$