[Interest] [QtSerialBus] [CAN] Blocking API planned?

2016-04-11 Thread André Hartmann
Hi all, right now the CAN bus API provides the signals framesReceived() and framesWritten(). For some cases, it's easier to have a thread that blocks until an event occurs. Therefore, the additional functions bool waitForFramesReceived(int msecs) bool waitForFramesWritten(in

Re: [Interest] [QtSerialBus] [CAN] Blocking API planned?

2016-04-11 Thread Blasche Alexander
Hi Andre, I have no immediate plan but it is a suggestion which I am willing to take onboard. I have converted your mail to: https://bugreports.qt.io/browse/QTBUG-52495 -- Alex From: Interest on behalf of André Hartmann Sent: Monday, April 11, 2016

Re: [Interest] login.qt.io down => cannot install Qt

2016-04-11 Thread Richard
Kojo Tero theqtcompany.com> writes: > > Hi, > > There was a server incident in the early hours of the night (local server time) and that was fixed as soon as > there was someone in the office. > > It is not mandatory to log in to install Qt. > In open source you can skip the login in the insta

Re: [Interest] login.qt.io down => cannot install Qt

2016-04-11 Thread ekke
Am 11.04.16 um 09:31 schrieb Richard: > Kojo Tero theqtcompany.com> writes: > >> Hi, >> >> There was a server incident in the early hours of the night (local server > time) and that was fixed as soon as >> there was someone in the office. >> >> It is not mandatory to log in to install Qt. >> In op

Re: [Interest] [QtSerialBus] [CAN] Blocking API planned?

2016-04-11 Thread André Hartmann
Hi Alex, Thanks. Please add me to reviews if you work on this. If I find time, I may look into this issue myself also. Best regards, Andre Am 11.04.2016 um 09:25 schrieb Blasche Alexander: Hi Andre, I have no immediate plan but it is a suggestion which I am willing to take onboard. I hav

[Interest] Strange ordering problem with ComboBox

2016-04-11 Thread Gian Maxera
Hello, I’m using the ComboBox item of QML with more than two Items with a ListModel like that: ComboBox { id: rateType anchors.horizontalCenter: parent.horizontalCenter width: parent.width*0.9 Component.onCompleted: {

[Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, Is it possible to generate id of item in Repeater, for example? Thank you. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
Hello, I don’t think so. Why do you need it ? Maybe we can suggest to you an alternative solution. Ciao, Gianluca. > On 11 Apr 2016, at 10:38, Igor Mironchik wrote: > > Hello, > > Is it possible to generate id of item in Repeater, for example? > > Thank you. > ___

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Look. I want to generate chess board - rectangles (8x8). And I want to place numbers an letters on the sides. This numbers and letters should be anchored to centers of rectangles. I.e. I want to have something like: Text { anchor.horizontalCenter: cell00.horizontalCenter } ... On 11.04.20

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
If the Text is inside the generated rectangle into the repeater you don’t need to generate different Ids, you can do that: Repeater { model: 10 delegate: Rectangle { id: cellRect Text { anchor.horizontalCenter: cellRect.horizontalCenter } } } Even if the delegate has

Re: [Interest] QML id

2016-04-11 Thread Jesus Fernandez
Hi! You can store the items in a custom JavaScript variable: import QtQuick 2.5 import QtQuick.Window 2.2 Window { property var rowItems visible: true Component.onCompleted: { /rowItems/ = []; for (var /i/ = 0; /i/ < 64; ++/i/) { /rowItems/[/i/] = /Qt/.c

Re: [Interest] login.qt.io down => cannot install Qt

2016-04-11 Thread Kojo Tero
Hi, Yes, the server went down on Sunday again. Same underlying hardware issue manifested again. The solution was to move everything out of the troublesome environment right away. That was the unscheduled break this morning. Full time standby is something that our IT people need to discuss now.

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
On 11.04.2016 12:57, Gian Maxera wrote: If the Text is inside the generated rectangle into the repeater you don’t need to generate different Ids, you can do that: Repeater { model: 10 delegate: Rectangle { id: cellRect Text { anchor.horizontalCenter: cellRect.horizontalC

Re: [Interest] QML id

2016-04-11 Thread Rutledge Shawn
Inside each item instantiated in a Repeater, “index” is bound: the first item has index 0, the second has 1 and so on. So you can use that directly to number the squares or use it as an array index to look up something in a JS array. > On 11 Apr 2016, at 11:49, Igor Mironchik wrote: > > Look

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
> On 11 Apr 2016, at 11:14, Igor Mironchik wrote: > > > > On 11.04.2016 12:57, Gian Maxera wrote: >> If the Text is inside the generated rectangle into the repeater you don’t >> need to generate different Ids, you can do that: >> >> Repeater { >> model: 10 >> delegate: Rectangle { >>

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, On 11.04.2016 13:19, Gian Maxera wrote: On 11 Apr 2016, at 11:14, Igor Mironchik > wrote: On 11.04.2016 12:57, Gian Maxera wrote: If the Text is inside the generated rectangle into the repeater you don’t need to generate different Ids, you can do tha

Re: [Interest] QML id

2016-04-11 Thread Elvis Stansvik
2016-04-11 12:44 GMT+02:00 Igor Mironchik : > Hello, > > On 11.04.2016 13:19, Gian Maxera wrote: > > > On 11 Apr 2016, at 11:14, Igor Mironchik wrote: > > > > On 11.04.2016 12:57, Gian Maxera wrote: > > If the Text is inside the generated rectangle into the repeater you don’t > need to generate di

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
> On 11 Apr 2016, at 11:44, Igor Mironchik wrote: > > Hello, > > On 11.04.2016 13:19, Gian Maxera wrote: >> >>> On 11 Apr 2016, at 11:14, Igor Mironchik < >>> igor.mironc...@gmail.com >>> > wrote: >>> >>> >>> >>> On 11.04.2

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Frédéric Marchal
On Monday 11 April 2016 12:57:35 Prav wrote: > Hi, Tomasz. > > > Prav, I think you misunderstand what 8bit and codec means here. > > ... > > However, your locale can be in UTF-8, in which some characters are 8 bit > > long ... > Agree. I already undestood from previous answers that locale can mult

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
On 11.04.2016 15:10, Gian Maxera wrote: On 11 Apr 2016, at 11:44, Igor Mironchik > wrote: Hello, On 11.04.2016 13:19, Gian Maxera wrote: On 11 Apr 2016, at 11:14, Igor Mironchik wrote: On 11.04.2016 12:57, Gian Maxera wrote: If the Text is inside the

Re: [Interest] QML id

2016-04-11 Thread Ben Lau
How about to scale the whole chess board to fit the window? On 11 April 2016 at 20:55, Igor Mironchik wrote: > > > On 11.04.2016 15:10, Gian Maxera wrote: > > > On 11 Apr 2016, at 11:44, Igor Mironchik < > igor.mironc...@gmail.com> wrote: > > Hello, > > On 11.04.2016 13:19, Gian Maxera wrote:

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
> On 11 Apr 2016, at 13:55, Igor Mironchik wrote: > > > > On 11.04.2016 15:10, Gian Maxera wrote: >> >>> On 11 Apr 2016, at 11:44, Igor Mironchik < >>> igor.mironc...@gmail.com >>> > wrote: >>> >>> Hello, >>> >>> On 11.04.2

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Hello, Thank you. I successfully drawn chess board. Nice. Column { spacing: 0 Row { // top letters Item { width: offset; height: offset; } Repeater { model: [ "A", "B", "C", "D", "E", "F", "G", "H" ] delegate: T

Re: [Interest] QML id

2016-04-11 Thread Gian Maxera
> On 11 Apr 2016, at 14:49, Igor Mironchik wrote: > > Hello, > > Thank you. > > I successfully drawn chess board. Nice. > > Column { > spacing: 0 > Row { > // top letters > Item { width: offset; height: offset; } > Repeater { >

Re: [Interest] QML id

2016-04-11 Thread Igor Mironchik
Hi, I've found solution better... Row { id: top height: offset // top letters Item { width: offset; height: offset; } Repeater { model: [ "A", "B", "C", "D", "E", "F", "G", "H" ] delegate: Text { width: cellWidth

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Thiago Macieira
On segunda-feira, 11 de abril de 2016 11:41:13 PDT Prav wrote: > Well ... сan you clarify your answer please? It boils down to "in theory, theory and practice are the same; in practice, they're not". In theory, the locale codec can be anything, including 16- and 32-bit codecs. In practice, they

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Thiago Macieira
On segunda-feira, 11 de abril de 2016 05:31:02 PDT Frédéric Marchal wrote: > I don't know how toLocal8bit degrades on processors where > a char is 16 or 32-bit long. Processors with 16- or 32-bit bytes don't exist and, if they did, they wouldn't be supported by Qt. -- Thiago Macieira - thiago.

[Interest] QML Grid's children and findChild doesn't work

2016-04-11 Thread Igor Mironchik
Hi, I have chess board defined in QML as: Grid { id: grid rows: 8 columns: 8 x: offset y: top.y + top.height objectName: "grid" Repeater { model: chessBoard delegate: Cell { cellColor: model.Curren

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Christoph Cullmann
Hi, > On segunda-feira, 11 de abril de 2016 05:31:02 PDT Frédéric Marchal wrote: >> I don't know how toLocal8bit degrades on processors where >> a char is 16 or 32-bit long. > > Processors with 16- or 32-bit bytes don't exist and, if they did, they > wouldn't be supported by Qt. :=) They do and a

Re: [Interest] QML Grid's children and findChild doesn't work

2016-04-11 Thread Igor Mironchik
Hi, Seems that delegate can't be found with findChild()... I solved problem as I use model. I fully removed direct interacting with Cells on Board... Thank you guys for your suggestions and help. On 11.04.2016 18:49, Igor Mironchik wrote: Hi, I have chess board defined in QML as: Grid {

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Prav
Hi, Thiago. > It boils down to "in theory, theory and practice are the same; in practice, > they're not". I am not a phylosopher ... only interested in practice. > In theory, the locale codec can be anything, including 16- and 32-bit codecs. > In practice, they can't because a lot of software i

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Prav
Hi, Christoph. =>> But yeah, they are from hell and thou shall now use Qt on them. :) :) :) :) Yeah ... let's consider all platforms with non-multibyte locale codec from hell This probably mean that it is worth to WARN in docs that for QTextCodec::setCodecForLocale() do not use UTF-16 or someth

Re: [Interest] Why there is no QChar::toLocal8Bit()?

2016-04-11 Thread Thiago Macieira
On segunda-feira, 11 de abril de 2016 20:58:47 PDT Prav wrote: > This probably mean that it is worth to WARN in docs that for > QTextCodec::setCodecForLocale() do not use UTF-16 or something like this > because toLocal8Bit (or may be many others) relies on fact that it is > signle-byte or multi-byt

[Interest] Any known issues with rDNS lookups on OS X?

2016-04-11 Thread Bob Hood
I'm using Qt 5.4.2 code to retrieve a connected machine's hostname (via QHostInfo::lookupHost()). The code works perfectly under Windows, but fails under OS X. I get the hostname under Windows, but I'm left with only the connections network address on OS X. Does anybody know of any existing

Re: [Interest] Any known issues with rDNS lookups on OS X?

2016-04-11 Thread Thiago Macieira
On segunda-feira, 11 de abril de 2016 19:11:37 PDT Bob Hood wrote: > I'm using Qt 5.4.2 code to retrieve a connected machine's hostname (via > QHostInfo::lookupHost()). The code works perfectly under Windows, but fails > under OS X. I get the hostname under Windows, but I'm left with only the > c

Re: [Interest] Any known issues with rDNS lookups on OS X?

2016-04-11 Thread Bob Hood
On 4/11/2016 8:09 PM, Thiago Macieira wrote: On segunda-feira, 11 de abril de 2016 19:11:37 PDT Bob Hood wrote: I'm using Qt 5.4.2 code to retrieve a connected machine's hostname (via QHostInfo::lookupHost()). The code works perfectly under Windows, but fails under OS X. I get the hostname und

Re: [Interest] Any known issues with rDNS lookups on OS X?

2016-04-11 Thread Thiago Macieira
On segunda-feira, 11 de abril de 2016 21:00:05 PDT Bob Hood wrote: > Bobs-Mac:repo bob$ host 10.38.1.108 > Host 108.1.38.10.in-addr.arpa. not found: 3(NXDOMAIN) > Bobs-Mac:repo bob$ host sikun > Host sikun not found: 3(NXDOMAIN) > > So, obviously there is no host entry for a NA

[Interest] QML properties

2016-04-11 Thread Igor Mironchik
Hi, How to correctly name that that when in QML I write "width: parent.width / 2", for example, then when parent.width changed then changed and width too? I.e. automatic propagation? Thank you. ___ Interest mailing list Interest@qt-project.org http

Re: [Interest] QML properties

2016-04-11 Thread Ben Lau
Property binding / Data binding On 12 April 2016 at 12:47, Igor Mironchik wrote: > Hi, > > How to correctly name that that when in QML I write "width: parent.width > / 2", for example, then when parent.width changed then changed and width > too? I.e. automatic propagation? > > Thank you. >