[Interest] Error-const class QSerialPortInfo' has no member named 'serialNumber'

2015-01-29 Thread Nilesh Kokane
Hi, I tried to cross-compile terminal code (example )for arm and getting the error as : ‘const class QSerialPortInfo’has no member named ‘serialNumber’ @ serialNumber = info.serialNumber(); but when the same code when compiled on native sys (linux ubuntu14.04)it doesn’t complains. Can anyone pleas

Re: [Interest] Tabbed toolbar

2015-01-29 Thread Sze Howe Koh
Hi, On 30 January 2015 at 13:20, Christian Gagneraud wrote: > Hi, > > I would like to manage tool/actions using an "advanced" toolbar system, > on this visual [1] they call it "tabbed command manager" > The issue is not much the tabification of the toolbars, but instead the > layout of the tool b

[Interest] Tabbed toolbar

2015-01-29 Thread Christian Gagneraud
Hi, I would like to manage tool/actions using an "advanced" toolbar system, on this visual [1] they call it "tabbed command manager" The issue is not much the tabification of the toolbars, but instead the layout of the tool buttons as QToolBar doesn't support displaying buttons in a grid (multi

Re: [Interest] Qt container size()

2015-01-29 Thread Constantin Makshin
IMHO QByteArray is a much better candidate for that "position". On 01/30/2015 01:25 AM, André Pönitz wrote: > I would be willing to make an exception for QVector (and only that), > this could, or even should, be a lightweight "fullsize" container. > The portability reason carry less weight in this

Re: [Interest] Qt container size()

2015-01-29 Thread André Pönitz
On Thu, Jan 29, 2015 at 02:32:13PM +0100, Felix morack wrote: > Is there any reason for this? Why dont they use size_t like the STL and > the rest of the world? > > It's 2015, people will increasingly bump into this limitation - i just > did. If you have 2^31 items or more in a container you *nee

Re: [Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Felix morack
1. yes, but that isnt stl based. i am talking about a drop-in replacement that wraps a std:: container. 2. Qt containers will only store maximal number of MAX_INT number of items, ie 2147483647. 3. because i have a lot of code written against the Qt api already. 2015-01-29 21:22 GMT+01:00 Thiago M

Re: [Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Scott Aron Bloom
What size limitations in the Qt containers, do you think will be solved with STL containers? If it been discussed on the list, I must have missed it… Scott From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Beha

Re: [Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Thiago Macieira
On Thursday 29 January 2015 21:05:33 Felix morack wrote: > Hi, > > In light of the size limitations of Qt containers, a collegue suggested > writing an API wrapper around a std:: container. His idea was to > template-derive from a std::vector or std::map and implement the Qt API as > a wrapper aro

Re: [Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Jérôme Godbout
May take a look at https://web.njit.edu/all_topics/Prog_Lang_Docs/html/qt/qt-template-lib.html On Thu, Jan 29, 2015 at 3:05 PM, Felix morack wrote: > Hi, > > In light of the size limitations of Qt containers, a collegue suggested > writing an API wrapper around a std:: container. His idea was to

Re: [Interest] QML Text.Fit question

2015-01-29 Thread Harri Pasanen
We'll putting on my designer classes here: Imagine I have a rectangle on screen, let's say a sign to a shop. I want to have the title text within the sign so that it leaves 5 mm margin on both sides and top and bottom. So I compute the rectangle where the text needs to fit, exactly so that it

[Interest] QT API wrapper around std:: containers?

2015-01-29 Thread Felix morack
Hi, In light of the size limitations of Qt containers, a collegue suggested writing an API wrapper around a std:: container. His idea was to template-derive from a std::vector or std::map and implement the Qt API as a wrapper around the std:: API. Has this been attempted before?

Re: [Interest] Connect to concrete WiFi network

2015-01-29 Thread Thiago Macieira
On Thursday 29 January 2015 20:42:23 Igor Mironchik wrote: > Hi. > > With QNetworkConfigaration and QNetworkSession I can find WiFi interface > in the device and turn this interface on. It's simple as I understood from > the Qt's documentation. > > But I have one question: is it possible to conne

[Interest] Connect to concrete WiFi network

2015-01-29 Thread Igor Mironchik
Hi. With QNetworkConfigaration and QNetworkSession I can find WiFi interface in the device and turn this interface on. It's simple as I understood from the Qt's documentation. But I have one question: is it possible to connect to concrete WiFi network with Qt? -- Best Regards, Igor Mironc

[Interest] Android (and iOS) network state?

2015-01-29 Thread Jason H
Is there a way in Qt/QML that I can detect if the phone is connected to the internet without having to actually connect to a server? I know the Android SDK has an API and permissions for reading network state. I'd like to display a message to the user when there is no data connection (Wifi or c

Re: [Interest] Windows Phone 8.1 (WinRT) field report

2015-01-29 Thread Kalinowski Maurice
Both windeployqt and winrtrunner do have a –verbose option. You can find it for windeployqt in the deploy configuration of the project and specify additional arguments there. Also information like whether you have the emulator running or want it to autostart would be important. BR, Maurice V

Re: [Interest] Qt container size()

2015-01-29 Thread André Somers
Felix morack schreef op 29-1-2015 om 14:32: > Hi, > > > Qt containers use 'int' to refer to their size thus limiting their > size to INT_MAX. > > Is there any reason for this? Why dont they use size_t like the STL > and the rest of the world? > > It's 2015, people will increasingly bump into this

Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-29 Thread Nate Rogers
I would do it externally from the buttons themselves on the event that causes the permissions to change.  On the event you could first loop through to find the button with the active focus and if it is no longer enabled then you could loop through each button to find one that is and set it's foc

Re: [Interest] Qt container size()

2015-01-29 Thread Felix morack
you can always use -1 as an error - even if signedness was an issue there is still qint64. 2015-01-29 14:36 GMT+01:00 Tomasz Siekierda : > On 29 January 2015 at 14:32, Felix morack wrote: > > Hi, > > > > > > Qt containers use 'int' to refer to their size thus limiting their size > to > > INT_MAX

[Interest] [QML] Different behaviour between QML Scene and QQmlApplicationEngine when using getContext("2d")

2015-01-29 Thread Christoph Petzold
Hello, i do not understand the behaviour of my compiled Qt-Quick-C++ application when using property var ctx: getContext("2d") in a simple qml Canvas component. I do get run time errors qrc:/NotWorkingRectangle.qml:7:5: QML Canvas: Unable to use getContext() at this time, please wait for ava

Re: [Interest] Qt container size()

2015-01-29 Thread Tomasz Siekierda
On 29 January 2015 at 14:32, Felix morack wrote: > Hi, > > > Qt containers use 'int' to refer to their size thus limiting their size to > INT_MAX. > > Is there any reason for this? Why dont they use size_t like the STL and the > rest of the world? Basically this is so that -1 can be used as error

[Interest] Qt container size()

2015-01-29 Thread Felix morack
Hi, Qt containers use 'int' to refer to their size thus limiting their size to INT_MAX. Is there any reason for this? Why dont they use size_t like the STL and the rest of the world? It's 2015, people will increasingly bump into this limitation - i just did. I very much prefer QTL over STL for

Re: [Interest] Windows Phone 8.1 (WinRT) field report

2015-01-29 Thread Harri Pasanen
On 29/01/2015 13:49, Kalinowski Maurice wrote: Could you please create a report on your emulator related issues so that we can have a look? Before I report the bug, do you have instructions for logging something more than the following? Error while building/deploying project test1 (kit:

Re: [Interest] Windows Phone 8.1 (WinRT) field report

2015-01-29 Thread Kalinowski Maurice
Hi, > 1. Don't try to deploy from Qt Creator As you mentioned yourself, this is a reported bug and we’re trying to fix it. > 2. Don't call Qt.quit()(Many simple Qt Creator wizard generated QML apps > do just that) You can, but the platform design says you are not supposed to. Hence so fa

Re: [Interest] QML Text.Fit question

2015-01-29 Thread Curtis Mitch
I've found that a combination of scaling font size based on the default font size (font.pixelSize of an empty Text item, for example, or the new Font/TextMetrics types) and Text.Fit handles stuff pretty well. I'd be interested to see your case where it's not working, just because I'm curious. :)

[Interest] Windows Phone 8.1 (WinRT) field report

2015-01-29 Thread Harri Pasanen
I made another attempt at running apps on Lumia 530 and finally made some progress. First the 3 don't: 1. Don't try to deploy from Qt Creator 2. Don't call Qt.quit()(Many simple Qt Creator wizard generated QML apps do just that) 3. Don't have onPressAndHold in your MouseAreas The related