Re: [Interest] Buiding lib on ios 8

2014-10-17 Thread Tor Arne Vestbø
What's the output of xcode-select ? Do you have .qmake.cache or .qmake.stash files in your build dir? tor arne On 14/10/14 21:48, Christophe Thomas wrote: Hello, I'm trying to build a working app for ios 8. It used to build on Ios 7.1. - I've done the update of xcode to move to new version

[Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Mikhail Matrosov
Hello! In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of C++”: “Avoid ‘‘naked’’ new and delete operations; §4.2.2.”. We use standard containers and smart pointers for that, with std::make_shared and std::make_unique functions for

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Reinhardt Behm
On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: Hello! In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of C++”: “Avoid ‘‘naked’’ new and delete operations; §4.2.2.”. We use standard containers and smart pointers

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Bo Thorsen
Den 16-10-2014 17:39, Nuno Santos skrev: Hi, I’m using Slider from QtQuickControls and i’m facing a problem. I initialise the value with a value saved on settings. However, when the slider is instantiated, it is triggering onValueChanged with the default min value. The setting is being

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Bo Thorsen
Den 17-10-2014 08:42, Reinhardt Behm skrev: On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: Hello! In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of C++”: “Avoid ‘‘naked’’ new and delete operations; §4.2.2.”. We

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Koehne Kai
-Original Message- From: interest-bounces+kai.koehne=theqtcompany@qt-project.org [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of Mikhail Matrosov Sent: Wednesday, October 15, 2014 11:57 PM To: interest@qt-project.org Subject: [Interest]

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Reinhardt Behm
On Friday 17 October 2014 09:00:08 Bo Thorsen wrote: Den 17-10-2014 08:42, Reinhardt Behm skrev: On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: Hello! In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of

Re: [Interest] 3D Navigation QtLocation Module

2014-10-17 Thread Blasche Alexander
Hi, I am not sure what you define as 3D navigation but you cannot incorporate 3D data such as buildings into QtLocation at this stage. There is Navigation support with turn-by-turn instructions and routing. However it does not support all the features that a navigation software would require.

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Bo Thorsen
Well, yes and no. Often, when you rely on the onCompleted, this points to a flaw in your code or design. (I said often, guys, flames not needed :) Sometimes these checks are necessary.) However, in your specific case, you could actually solve this without problems: value: settings.trackWidth

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Mikhail Matrosov
On Friday 17 October 2014 09:00:08 Bo Thorsen wrote: * Den 17-10-2014 08:42, Reinhardt Behm skrev: ** On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: ** Hello! ** ** In modern C++ there is almost no need to use raw *new* and *delete*. As ** Bjarne Stroustrup is saying in his “A

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Bo Thorsen
Den 17-10-2014 10:32, Mikhail Matrosov skrev: On Friday 17 October 2014 09:00:08 Bo Thorsen wrote: / Den 17-10-2014 08:42, Reinhardt Behm skrev: // On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: // Hello! // // In modern C++ there is almost no need to use raw *new* and

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Nurmi J-P
On 16 Oct 2014, at 17:39, Nuno Santos nunosan...@imaginando.pt wrote: Hi, I’m using Slider from QtQuickControls and i’m facing a problem. I initialise the value with a value saved on settings. However, when the slider is instantiated, it is triggering onValueChanged with the default

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Nuno Santos
Hummm This Settings QML type is awesome and I didn’t knew it. I had a QSettings class exposed to QML and I was declaring all the properties I needed. This really saves a lot of work. Should I really on it for a production product? Regards, Nuno On 17 Oct 2014, at 09:43, Nurmi J-P

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Nurmi J-P
On 17 Oct 2014, at 10:48, Nuno Santos nunosan...@imaginando.pt wrote: Hummm This Settings QML type is awesome and I didn’t knew it. I had a QSettings class exposed to QML and I was declaring all the properties I needed. This really saves a lot of work. Should I really on it for a

Re: [Interest] How to set QtQuickControls Slider to an initial value without modifying the current saved?

2014-10-17 Thread Nuno Santos
Thx J-P, I was reading Settings documentation and I have just stumbled on the following sentence: Writing a setting value using one instance of Settings does not update the value in another Settings instance, even if they are referring to the same setting in the same category.” This is ultra

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Mikhail Matrosov
Ok, I got your point. Thanks to all for the feedback! - Best regards, Mikhail Matrosov 2014-10-17 12:34 GMT+04:00 Bo Thorsen b...@vikingsoft.eu: Den 17-10-2014 10:32, Mikhail Matrosov skrev: On Friday 17 October 2014 09:00:08 Bo Thorsen wrote: / Den 17-10-2014 08:42, Reinhardt Behm

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Thiago Macieira
On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of C++”: “Avoid ‘‘naked’’ new and delete operations; §4.2.2.”. We use standard containers and smart pointers for that,

[Interest] Ctrl key accelerator issues in Qt/MFC integration

2014-10-17 Thread Patrick Leveille
I am currently working on a MFC document-view application on VC++ 2010. It is used as a development framework, with a client specific dialog as needed (hiding the framework application). We have started a gradual port to Qt 4.7.4, using QMfcApp. Our client specific dialog is a QMainWindow

[Interest] Qt Keyboard shortcuts not working on Sony Laptop

2014-10-17 Thread Kamalpreet Grewal
I am developing application in Qt. I have defined shortcuts for various actions in my application. They work well on all systems except the Sony VAIO laptops. Is this some compatibilty issue? Any ideas to work this out for the successful working of keyboard shortcuts on VAIO laptops. Thanks in

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Mikhail Matrosov
I got another thought on the subject. We ultimately have three allocation options: 1. Create QObject on the stack 2. Create QObject on the heap with a parent 3. Create QObject on the heap without a parent (null parent) In first two options object is deleted automatically (by going out of scope or

Re: [Interest] Apps crashing with ios8

2014-10-17 Thread Raphael Couto
I have the same problem, but in IOS 8.0.2. In 8.0.1 my application works fine. Em , Christophe Thomas escreveu: Hello, How can I get this ? In attached file the console log Chris 2014-10-16 9:54 GMT+02:00 Gustavsen Richard richard.gustav...@theqtcompany.com: ​Do you

Re: [Interest] Apps crashing with ios8

2014-10-17 Thread Christophe THOMAS
Do you mean when you build for iOS 8.0.2 or run on an apple device that uses this iOS version? It seems that I'm building for iOS 8.0 and my iPhone is on latest iOS. Christophe Le 18 oct. 2014 à 00:16, Raphael Couto sp...@quati.info a écrit : I have the same problem, but in IOS 8.0.2.