Re: [Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
2016-05-06 23:47 GMT+02:00 Thiago Macieira : > On sexta-feira, 6 de maio de 2016 10:50:45 PDT Shawn Rutledge wrote: >> > The reason I'm asking is I'm building a QML application for embedded >> > use. The app is QML only, apart from some calls from QML into Python >> >

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:41 GMT+02:00 J-P Nurmi <jpnu...@qt.io>: >> On 06 May 2016, at 22:27, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> Hi all, >> >> I want that an item reacts to a certain signal only when it is at the >> top of a StackView, so I tried

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:39 GMT+02:00 Jason H : > > Why not handle the signal and see if you are visible? Yes, that should also work. But I realize now my mistake was just like J-P suggested, that I was using the Stack.status property attached to the Connections element, not the Rectangle

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:41 GMT+02:00 J-P Nurmi <jpnu...@qt.io>: >> On 06 May 2016, at 22:27, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> Hi all, >> >> I want that an item reacts to a certain signal only when it is at the >> top of a StackView, so I tried

[Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
Hi all, I want that an item reacts to a certain signal only when it is at the top of a StackView, so I tried something like: Connections { // Below won't work: target: Stack.status === Stack.Active ? button : null

Re: [Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
2016-05-06 16:27 GMT+02:00 Shawn Rutledge <shawn.rutle...@qt.io>: > >> On 06 May 2016, at 15:16, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> Alright, I see. There's probably some JS lib out there I could use, >> after stripping everythi

[Interest] Window icon for pure QML app

2016-05-06 Thread Elvis Stansvik
Hi all, I recently switched to using `qml` to launch my pure QML app. How can I set the window icon? My root item is a Window. I found this post from 2013: http://comments.gmane.org/gmane.comp.lib.qt.user/5645 Which sounds like bad news. No way to do that short of making a C++ launcher

Re: [Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
2016-05-06 11:36 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > Since some time, the `qmlscene` command has been available for > debugging QML applications: > > > [estan@pyret ~]$ qmlscene --help > Usage: qmlscene [options] > > Options: >

Re: [Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
2016-05-06 13:34 GMT+02:00 Shawn Rutledge <shawn.rutle...@qt.io>: > >> On 6 May 2016, at 13:07, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> [estan@pyret ~]$ qml test.qml -- --foo bar >> qml: /usr/lib/qt/bin/qml,test.qml,--,--foo,bar >> [estan@pyret

Re: [Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
2016-05-06 12:50 GMT+02:00 Shawn Rutledge <shawn.rutle...@qt.io>: > >> On 6 May 2016, at 11:36, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> Hi all, >> >> Since some time, the `qmlscene` command has been available for >> debugging QML a

[Interest] Role of `qmlscene` and `qml` command line tools

2016-05-06 Thread Elvis Stansvik
Hi all, Since some time, the `qmlscene` command has been available for debugging QML applications: [estan@pyret ~]$ qmlscene --help Usage: qmlscene [options] Options: --maximized .. Run maximized --fullscreen . Run fullscreen --transparent

Re: [Interest] armv7a-hard-float in Qt android apps

2016-04-30 Thread Elvis Stansvik
2016-04-30 11:51 GMT+02:00 Ola Røer Thorsen : > > 2016-04-30 10:46 GMT+02:00 Jean-Michaël Celerier > : >> >> https://godbolt.org/g/DqBlFG >> >> With gcc -O1 >> >> float f(float x) >> { >> return 2. * x; >> } >> >> becomes >> >> f(float): >>

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

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
not do some synthesization to reach normal weight (the default weight according to docs). I don't think Eskil has this in mind, since it wouldn't really makes sense, so I'm not worried. Just wanted to be clear :) Elvis > > >> Sent: Monday, April 04, 2016 at 9:51 AM >> From: "

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-05 16:24 GMT+02:00 Allan Sandfeld Jensen <k...@carewolf.com>: > On Tuesday 05 April 2016, Elvis Stansvik wrote: >> 2016-04-05 15:12 GMT+02:00 Allan Sandfeld Jensen <k...@carewolf.com>: >> > On Monday 04 April 2016, Elvis Stansvik wrote: >> >>

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-05 15:12 GMT+02:00 Allan Sandfeld Jensen <k...@carewolf.com>: > On Monday 04 April 2016, Elvis Stansvik wrote: >> Hi all, >> >> I'm targeting Qt 5.4.1 and it seems there's no Font.Medium enumeration >> value there? I get: >> >> Unable to a

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-04 15:51 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I'm targeting Qt 5.4.1 and it seems there's no Font.Medium enumeration > value there? I get: > > Unable to assign [undefined] to int > > The font we're using for this app is our compan

Re: [Interest] Available versions to QML import in older Qt releases?

2016-04-05 Thread Elvis Stansvik
Den 4 apr 2016 4:40 em skrev "Jason H" : > > > I'm working on a product based on Ubuntu 15.10, where Qt 5.4.1 is the > > packaged version (I know a more recent Ubuntu is soon to be released, > > and an LTS at that, but we're on this version for now). > > > > Is there an online way

Re: [Interest] Available versions to QML import in older Qt releases?

2016-04-05 Thread Elvis Stansvik
Den 4 apr 2016 4:40 em skrev "Jason H" : > > > I'm working on a product based on Ubuntu 15.10, where Qt 5.4.1 is the > > packaged version (I know a more recent Ubuntu is soon to be released, > > and an LTS at that, but we're on this version for now). > > > > Is there an online way

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-04 16:13 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-04-04 15:51 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> Hi all, >> >> I'm targeting Qt 5.4.1 and it seems there's no Font.Medium enumeration >> value there? I get: >&g

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-04 16:32 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-04-04 16:21 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> 2016-04-04 15:51 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >>> Hi all, >>> >>> I'm targeting Qt 5.4.1 and

Re: [Interest] Use Book and Medium weight Gotham font from QML?

2016-04-05 Thread Elvis Stansvik
2016-04-04 16:21 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-04-04 15:51 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> Hi all, >> >> I'm targeting Qt 5.4.1 and it seems there's no Font.Medium enumeration >> value there? I get: >&g

[Interest] Available versions to QML import in older Qt releases?

2016-04-04 Thread Elvis Stansvik
Hi all, I'm working on a product based on Ubuntu 15.10, where Qt 5.4.1 is the packaged version (I know a more recent Ubuntu is soon to be released, and an LTS at that, but we're on this version for now). Is there an online way to find out which versions of packages I can import from the QtQuick

Re: [Interest] Press and hold keyboard key to bring up menu in QML

2016-04-01 Thread Elvis Stansvik
g me a new word :) (debounce). Elvis > > On Fri, Apr 1, 2016 at 8:33 AM, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-04-01 12:45 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi folks, >> > >> > I have a full screen, page

Re: [Interest] Press and hold keyboard key to bring up menu in QML

2016-04-01 Thread Elvis Stansvik
2016-04-01 16:11 GMT+02:00 Reinhardt Behm <rb...@hushmail.com>: > On Friday 01 April 2016 14:33:29 Elvis Stansvik wrote: >> 2016-04-01 12:45 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi folks, >> > >> > I have a full screen, page based Qt

Re: [Interest] Press and hold keyboard key to bring up menu in QML

2016-04-01 Thread Elvis Stansvik
2016-04-01 12:45 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi folks, > > I have a full screen, page based Qt Quick 2 application. Input is > contstrained by the hardware to the Left/Right/Return keyboard keys, > so is quite limited, and navigation between pages is

[Interest] Press and hold keyboard key to bring up menu in QML

2016-04-01 Thread Elvis Stansvik
Hi folks, I have a full screen, page based Qt Quick 2 application. Input is contstrained by the hardware to the Left/Right/Return keyboard keys, so is quite limited, and navigation between pages is done using buttons on each page which handle return presses using (most of the time)

Re: [Interest] ts file format / export

2016-03-31 Thread Elvis Stansvik
2016-03-31 18:57 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-03-31 17:14 GMT+02:00 Jason H <jh...@gmx.com>: >> I find it somewhat confusing that phrases are grouped (nested) in the >> editor, but not in the file: >> >> >> >> C

Re: [Interest] ts file format / export

2016-03-31 Thread Elvis Stansvik
2016-03-31 17:14 GMT+02:00 Jason H : > I find it somewhat confusing that phrases are grouped (nested) in the editor, > but not in the file: > > > > ChangePasswordScreen > > Passwords do not match > Passwords do not match > > > At least

Re: [Interest] SVG gradient not working on some machines

2016-03-31 Thread Elvis Stansvik
Den 31 mar 2016 3:13 em skrev "Larry Martell" : > > On Wed, Mar 30, 2016 at 10:48 AM, Larry Martell wrote: > > I have some HTML that looks like this: > > > > > > > > > x1="0" y1="0" x2="100%" y2="0"> > >

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-31 Thread Elvis Stansvik
Den 31 mar 2016 3:10 em skrev "Nikita Krupenko" <krne...@gmail.com>: > > 2016-03-30 16:17 GMT+03:00 Elvis Stansvik <elvst...@gmail.com>: > > I saw that there's an > > ObjectModel that could have been handy, but it's Qt 5.6+ only (while > > our product

Re: [Interest] Declaratively handle key presses / navigation differently depending on state (QML)

2016-03-31 Thread Elvis Stansvik
nt.weight font.pixelSize: metersEditor.font.weight anchors.baseline: metersEditor.baseline } IntegerEditor { id: centimetersEditor anchors.baseline: metersEditor.baseline KeyNavigation.right: metersEditor } } This still leaves some if (state ==

Re: [Interest] Declaratively handle key presses / navigation differently depending on state (QML)

2016-03-31 Thread Elvis Stansvik
] > > > -Original Message- > From: Interest > [mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org] On > Behalf Of Elvis Stansvik > Sent: 31. mars 2016 14:38 > To: interest@qt-project.org Interest <interest@qt-project.org> > Subje

Re: [Interest] Declaratively handle key presses / navigation differently depending on state (QML)

2016-03-31 Thread Elvis Stansvik
; } > PropertyChanges { > target: navigationConnections > target: null > } > } > ] > > > -Original Message- > From: Interest >

[Interest] Declaratively handle key presses / navigation differently depending on state (QML)

2016-03-31 Thread Elvis Stansvik
Hi, I'm working on an item representing a number to be edited by the user. My input is quite limited (only Left, Right and Enter, where Left and Right is actually the turning of a wheel), so the idea is to let the user navigating to the item with Left/Right, which will give it focus. If the user

Re: [Interest] Qt modules dependency tree

2016-03-30 Thread Elvis Stansvik
2016-03-30 18:28 GMT+02:00 Thiago Macieira : > On quarta-feira, 30 de março de 2016 15:26:50 PDT Olivier B. wrote: >> Hi, >> Would there be somewhere online a dependency tree of all qt modules of the >> standard distribution? > > It used to be in the qt.pro file of the

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
o that, thanks. Elvis > > On Wed, Mar 30, 2016 at 11:24 AM, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-03-30 17:22 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >>> >>> 2016-03-30 16:55 GMT+02:00 Jérôme Godbout <jer...@bodycad.com>:

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 17:22 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-03-30 16:55 GMT+02:00 Jérôme Godbout <jer...@bodycad.com>: > >> You may want to have them declared as list of object with the key as a >> property of each entry, and build the map based

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-30 Thread Elvis Stansvik
2016-03-30 16:16 GMT+02:00 Martin Leutelt <martin.leut...@basyskom.com>: > From: Elvis Stansvik <elvst...@gmail.com> > To: Martin Leutelt <martin.leut...@basyskom.com> > Cc: "interest@qt-project.org Interest" <interest@qt-project.org> > Sent: 3/30/2016

Re: [Interest] Problem with unintentional circular dependencies between QML singletons

2016-03-30 Thread Elvis Stansvik
have a MyItem property (as part of the state). Would that be in any way possible, or is it simply not allowed? The more I think about it the more I realize that's probably the case. Elvis > > On 30 March 2016 at 17:06, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-0

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 11:08 GMT+02:00 Gianluca <gmax...@gmail.com>: > > Il giorno 30/mar/2016, alle ore 09:46, Elvis Stansvik <elvst...@gmail.com> ha > scritto: > >> Hi Gianluca, >> >> 2016-03-30 10:16 GMT+02:00 Gianluca <gmax...@gmail.com>: >>>

Re: [Interest] Problem with unintentional circular dependencies between QML singletons

2016-03-30 Thread Elvis Stansvik
2016-03-30 11:00 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a problem that I think is due to QTBUG-39703 [1] and > QTBUG-34418 [2], but perhaps there's a smart workaround. > > Imagine the following setup: > > dir/ > main.qml

[Interest] Problem with unintentional circular dependencies between QML singletons

2016-03-30 Thread Elvis Stansvik
Hi all, I have a problem that I think is due to QTBUG-39703 [1] and QTBUG-34418 [2], but perhaps there's a smart workaround. Imagine the following setup: dir/ main.qml The main file MyItem.qml Some item, uses Style Style.qml Some colors et.c. State.qml

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
Hi Gianluca, 2016-03-30 10:16 GMT+02:00 Gianluca <gmax...@gmail.com>: > > Il giorno 30/mar/2016, alle ore 07:43, Elvis Stansvik <elvst...@gmail.com> > ha scritto: > > Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" <elvst...@gmail.com>: >&g

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
2016-03-30 10:15 GMT+02:00 Martin Leutelt <martin.leut...@basyskom.com>: > From: Elvis Stansvik <elvst...@gmail.com> > To: "interest@qt-project.org Interest" <interest@qt-project.org> > Sent: 3/30/2016 8:43 AM > Subject: Re: [Interest] Define map of static

Re: [Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
Den 30 mar 2016 8:36 fm skrev "Elvis Stansvik" <elvst...@gmail.com>: > > Hi all, > > I can understand why I can do > > property Item foo: Foo {} > property Item bar: Bar {} > property variant items: { > "foo": foo, > "bar":

[Interest] Define map of static items in QML

2016-03-30 Thread Elvis Stansvik
Hi all, I can understand why I can do property Item foo: Foo {} property Item bar: Bar {} property variant items: { "foo": foo, "bar": bar } but not property variant items: { "foo": Foo{}, "bar": Bar{} } The first opening { in the second example probably puts me in JS

[Interest] StackView and focus question

2016-03-29 Thread Elvis Stansvik
Hi, In trying to debug some focus issues when using a StackView (Qt Quick 2), I came across something I find strange, and I'm hoping someone can explain it to me. Take a look at the following test case (main.qml, Red.qml, Green.qml, Blue.qml and FocusIndicator.qml): main.qml: import QtQuick

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-29 Thread Elvis Stansvik
d in remote locations and serviced once a year. But I think it should be no problem to build this UX without QQC2 thanks to the tip from others in this thread. Anyway, thanks for the pointers. We may use QQC2 in the future. Elvis > > 2016-03-29 12:28 GMT+03:00 Elvis Stansvik <elvst...@gmail

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-29 Thread Elvis Stansvik
2016-03-25 10:32 GMT+01:00 Nikita Krupenko <krne...@gmail.com>: > 2016-03-22 21:13 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> But this will only allow me to redefine properties, and add new child >> items. How would I then be able to define both which conte

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-29 Thread Elvis Stansvik
Hi Nikita, (just back from Easter holiday) 2016-03-25 10:32 GMT+01:00 Nikita Krupenko <krne...@gmail.com>: > 2016-03-22 21:13 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: >> But this will only allow me to redefine properties, and add new child >> items. How would I

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-23 Thread Elvis Stansvik
2016-03-23 17:40 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi Martin, > > (and sorry in advance for the line breaks in the inline quotations of > your mail below, seems GMail mis-parsed something). > > 2016-03-22 22:38 GMT+01:00 Martin Leutelt <martin.leut...@b

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-23 Thread Elvis Stansvik
Hi Martin, (and sorry in advance for the line breaks in the inline quotations of your mail below, seems GMail mis-parsed something). 2016-03-22 22:38 GMT+01:00 Martin Leutelt <martin.leut...@basyskom.com>: > Von: Elvis Stansvik <elvst...@gmail.com> > An: "interest@

[Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-22 Thread Elvis Stansvik
Hi all, I'm working on a fullscreen Qt Quick/QML app (for machine control) which will consist of a set of interlinked screens, with key presses as the only interaction method. Each screen will have roughly the following QML structure: Rectangle { NavBar { id: topBar ...

[Interest] Exposing nested visual properties in FocusScope (alias -> alias problem)

2016-03-21 Thread Elvis Stansvik
Hi all, I'm trying to create a reusable component for a button. Right now I'm trying to figure out focus handling (the app is keyboard navigation only). I currently have the following structure (Button.qml): Rectangle { id: button property alias text: text.text

Re: [Interest] TextMetrics give wrong metrics for some strings

2016-03-21 Thread Elvis Stansvik
2016-03-21 11:09 GMT+01:00 Jens Bache-Wiig <jen...@gmail.com>: > >> On 21 Mar 2016, at 10:47, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-03-21 10:42 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >>> 2016-03-21 10:27 GMT+01:00

Re: [Interest] TextMetrics give wrong metrics for some strings

2016-03-21 Thread Elvis Stansvik
2016-03-21 10:42 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-03-21 10:27 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> Hi all, >> >> I'm attempting to make a custom Button item where the size of the >> button is determined by the metrics of the

Re: [Interest] TextMetrics give wrong metrics for some strings

2016-03-21 Thread Elvis Stansvik
2016-03-21 10:27 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I'm attempting to make a custom Button item where the size of the > button is determined by the metrics of the text it holds. The reason > is I want to put a thin rectangle below the text

[Interest] TextMetrics give wrong metrics for some strings

2016-03-21 Thread Elvis Stansvik
Hi all, I'm attempting to make a custom Button item where the size of the button is determined by the metrics of the text it holds. The reason is I want to put a thin rectangle below the text, sort of a stylistic underlining (text underlining is not sufficient, for aesthetic reasons). But I'm

[Interest] Modify only some properties of current Qt Quick Controls style?

2016-03-13 Thread Elvis Stansvik
Hi all, I'd like to use the "Flat" Qt Quick Controls style, but modify some colors. I know I can modify the style for e.g. a Button like this: Button { text: 'Some Button' style: ButtonStyle { background: Rectangle { border.color: "#fe7333"

Re: [Interest] Deleting the QNetworkAccessManager post(req, iodev) QIODevice?

2016-03-02 Thread Elvis Stansvik
2016-03-02 18:56 GMT+01:00 Jason H : > Indeed it is, there's a couple ways to skin this cat. Another idea, after looking at the API: You could perhaps transport your QFile* pointer in a user attribute of the request, e.g. something like (untested): int CoolFileAttribute =

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:23 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-02-25 19:10 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> 2016-02-25 18:24 GMT+01:00 Murphy, Sean <smur...@walbro.com>: >>>> >Foo() : QObject(nullptr) { >>>> >

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:10 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-02-25 18:24 GMT+01:00 Murphy, Sean <smur...@walbro.com>: >>> >Foo() : QObject(nullptr) { >>> > moveToThread(_thread); >>> > m_thread.start(); >>&

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 18:24 GMT+01:00 Murphy, Sean : >> >Foo() : QObject(nullptr) { >> > moveToThread(_thread); >> > m_thread.start(); >> >} >> > >> >~Foo() { >> > m_thread.quit(); >> > m_thread.wait(); >> >} >> >> This destructor is either never

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

[Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
Hi all, I have a very basic item delegate which opens up a custom editor: class MineralLevelsDelegate(QStyledItemDelegate): def createEditor(self, parent, option, index): return MineralLevelsEditor(parent) def updateEditorGeometry(self, editor, option, index):

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

Re: [Interest] Item editor at preferred size when using custom delegate?

2016-02-12 Thread Elvis Stansvik
2016-02-12 14:59 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > I have a very basic item delegate which opens up a custom editor: > > class MineralLevelsDelegate(QStyledItemDelegate): > > def createEditor(self, parent, option, index): > ret

Re: [Interest] x-platform way to pull app version?

2016-02-02 Thread Elvis Stansvik
Den 1 feb 2016 8:20 em skrev "André Somers" : > > Easiest is to let your buildsystem generate some cpp code with the version numbers in each build. We compiled in version number, git id an time & date with a simple script called from qmake on every build. Small related tip

Re: [Interest] x-platform way to pull app version?

2016-02-02 Thread Elvis Stansvik
2016-02-02 18:45 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Den 1 feb 2016 8:20 em skrev "André Somers" <an...@familiesomers.nl>: >> >> Easiest is to let your buildsystem generate some cpp code with the version >> numbers in each build. We compil

Re: [Interest] Stacked area chart and chart orientation in Qt Charts

2016-01-31 Thread Elvis Stansvik
Den 1 feb 2016 1:59 fm skrev "Nikita Krupenko" <krne...@gmail.com>: > > 2016-01-27 8:56 GMT+02:00 Elvis Stansvik <elvst...@gmail.com>: > > Hi all, > > > > I noticed that Qt Charts has a stacked bar chart, but no stacked area > > chart like t

Re: [Interest] how to add a buton to the hovered item from a qtreeview

2016-01-28 Thread Elvis Stansvik
Den 29 jan 2016 4:47 fm skrev "Nicolas Jäger" : > > Hi > I have a `QTreeView`, I control the background colors of items trough a css. When the pointer is > over an item his background is greyed. > > I use the signal `entered` to detect which item, aka `QModelIndex`, aka

[Interest] Stacked area chart and chart orientation in Qt Charts

2016-01-26 Thread Elvis Stansvik
Hi all, I noticed that Qt Charts has a stacked bar chart, but no stacked area chart like this: http://www.highcharts.com/demo/area-stacked Though you could of course compose one of multiple area charts yourself. But doesn anyone know if there's API planned for simplifying working with

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-25 Thread Elvis Stansvik
2016-01-25 22:06 GMT+01:00 Gunnar Roth : > >> Woah. So all this work for nothing, I can simply skip shipping the ICU >> DLLs? I'm only using QtCore. Oh well, then I learned something :) > > Maybe you should use depends.exe from dependancywalker.com to have a look > which dlls

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-25 Thread Elvis Stansvik
Den 25 jan 2016 8:24 fm skrev "Koehne Kai" <kai.koe...@theqtcompany.com>: > > > > > -Original Message- > > From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Elvis > > Stansvik > > Sent: Sunday, January 24, 2016 10:30 P

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-25 Thread Elvis Stansvik
Den 25 jan 2016 7:52 em skrev "Elvis Stansvik" <elvst...@gmail.com>: > > Den 25 jan 2016 8:24 fm skrev "Koehne Kai" <kai.koe...@theqtcompany.com>: > > > > > > > > > -Original Message- > > > From: Interest [mailto:int

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-24 Thread Elvis Stansvik
2016-01-24 18:49 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > 2016-01-24 17:32 GMT+01:00 rpzrpz...@gmail.com <rpzrpz...@gmail.com>: >> Elvis: >> >> If you are feeling generous, would you attach the MSVC 2013 project/files >> (SLN). >> >> Pe

[Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-24 Thread Elvis Stansvik
Hi all, I've put up minimal MSVC 2010 and 2013 builds of ICU 52.1, 53.1 and 54.1 for x86 and x64: https://github.com/estan/minimal-icu/releases The DLLs are usable as drop-in replacements for the ICU DLLs shipped with official Qt MSVC builds, provided you have no need for the advanced

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-24 Thread Elvis Stansvik
appveyor.yml to make 2015 builds only (see https://www.appveyor.com/docs/installed-software#visual-studio-2015). The way I'm using the Customizer (which actually has an XML POST API which I use through curl) is described in README.md (under Notes to Self), and in the appveyor.yml of course. Elvis

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-24 Thread Elvis Stansvik
2016-01-20 10:15 GMT+01:00 Koehne Kai <kai.koe...@theqtcompany.com>: > > >> -Original Message- >> From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Elvis >> Stansvik >> Sent: Tuesday, January 19, 2016 8:38 PM >> To: Jo

Re: [Interest] Minimal MSVC-built ICU DLLs available for download

2016-01-24 Thread Elvis Stansvik
ages > supported in their shipped apps. > > Cheers and Thanks, > > md > > > On 1/24/2016 9:18 AM, Elvis Stansvik wrote: >> >> Hi all, >> >> I've put up minimal MSVC 2010 and 2013 builds of ICU 52.1, 53.1 and >> 54.1 for x86 and x64: &g

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-19 Thread Elvis Stansvik
2016-01-17 15:46 GMT+01:00 John Layt <jl...@kde.org>: > > > On 17 January 2016 at 14:30, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi all, >> > >&g

[Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
Hi all, In an effort to cut down on the size of the standalone ZIP distribution of my small command line tool [1] which only uses QtCore, and which to my knowledge does not depend on any localization features, I'd like to try replacing the icudtXX.dll that I currently take from the Qt bin

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > In an effort to cut down on the size of the standalone ZIP > distribution of my small command line tool [1] which only uses QtCore, > and which to my knowledge does not depend on any localization

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 15:44 GMT+01:00 Konstantin Tokarev <annu...@yandex.ru>: > > > 17.01.2016, 17:30, "Elvis Stansvik" <elvst...@gmail.com>: >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >>> Hi all, >>> >>> In an

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 15:46 GMT+01:00 John Layt <jl...@kde.org>: > > > On 17 January 2016 at 14:30, Elvis Stansvik <elvst...@gmail.com> wrote: >> >> 2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: >> > Hi all, >> > >&g

Re: [Interest] Replacing icudtXX.dll without rebuilding Qt?

2016-01-17 Thread Elvis Stansvik
2016-01-17 14:48 GMT+01:00 Elvis Stansvik <elvst...@gmail.com>: > Hi all, > > In an effort to cut down on the size of the standalone ZIP > distribution of my small command line tool [1] which only uses QtCore, > and which to my knowledge does not depend on any localization

Re: [Interest] How to create a list.

2016-01-12 Thread Elvis Stansvik
2016-01-12 15:37 GMT+01:00 Bill Crocker : > Hello: > > Could someone please show me the few lines of code required > to add a list *of three elements* to a QTextDocument using low > level (i.e QTextBlock, QTextCursor, QTextList, etc.) classes. This would be one way:

Re: [Interest] SOLVED: QStyledItemDelegate's sizeHint() height being ignored by QTableWidget?

2016-01-04 Thread Elvis Stansvik
2016-01-04 16:19 GMT+01:00 Bob Hood : > On 1/3/2016 7:30 PM, Bob Hood wrote: > > Am I going to have to use a QTableView with a model in order to get the > height I need in each cell, or might this be a bug? > > > Since all my images are the same height, I solved this by

Re: [Interest] Distance from point to path.

2015-12-30 Thread Elvis Stansvik
2015-12-29 19:47 GMT+01:00 william.croc...@analog.com : > > Given a QPoint and a QPainterPath. > How do I find the distance from the QPoint to the > closest point along the QPainterPath. > >> >> Perhaps. But you should consider that QPainterPath is,

Re: [Interest] Distance from point to path.

2015-12-29 Thread Elvis Stansvik
2015-12-28 22:49 GMT+01:00 william.croc...@analog.com : > Hello: > > Given a QPoint and a QPainterPath. > How do I find the distance from the QPoint to the > closest point along the QPainterPath. > > I could step along the path with pointAtPercent > looking for the

Re: [Interest] Distance from point to path.

2015-12-29 Thread Elvis Stansvik
2015-12-29 15:07 GMT+01:00 william.croc...@analog.com <william.croc...@analog.com>: > On 12/29/2015 06:42 AM, Elvis Stansvik wrote: >> >> 2015-12-28 22:49 GMT+01:00 william.croc...@analog.com >>> >>> >>> Given a QPoint and a QPainterPath

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
4.x docs, it says there are limitations on .push (it'll only create a new list, not modify an existing, but don't know if this holds for 5.x). Elvis > > On 20 Dec 2015, at 17:02, Elvis Stansvik <elvst...@gmail.com> wrote: > > Elvis > > ___

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
2015-12-20 15:51 GMT+01:00 Personal Gmail : > As the documentation says: http://doc.qt.io/qt-5/qml-qtqml-component.html > Dynamically created instances can be deleted with the destroy() method. See > Dynamic QML Object Creation from JavaScript for more information. >

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
>> >> On the other hand, the information that Elvis provided about the >> distinction between visual parent and QObject parents seems to hit the nail >> on the head. I will test and report back! >> >> Best regards, >> koffy >> >> On Mon, Dec 2

Re: [Interest] Dynamically created item destroyed with original parent despite reparenting

2015-12-20 Thread Elvis Stansvik
e blue rectangle > gets destroyed with oldParent). Yea, I tried and got the same result. So strange, the docs clearly speaks of assigning to the data property. Elvis > > > On Mon, Dec 21, 2015 at 2:13 AM, Peter Klosowski <klo...@gmail.com> wrote: >> >> >> &

Re: [Interest] zipping with Qt

2015-12-11 Thread Elvis Stansvik
Hi Michael, 2015-12-11 21:44 GMT+01:00 Michael Vetter : > Hello list, > > I am developing an application which should have a custom file format > which in reality will just be a .tar.gz file. In is will be some xml > files and images. I will need to install such a file and

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
Hi André, 2015-12-03 10:51 GMT+01:00 André Hartmann : > Hello, > > I have a Qmake based project that is developed in Qt Creator (currently > compiled with Linux/gcc and Windows/MinGW). > > Depending on a configuration variable the PRO file my program links to one > of

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
2015-12-03 13:02 GMT+01:00 Konstantin Tokarev <annu...@yandex.ru>: > > > 03.12.2015, 15:00, "Elvis Stansvik" <elvst...@gmail.com>: >> Hi André, >> >> 2015-12-03 10:51 GMT+01:00 André Hartmann <andre.hartm...@iseg-hv.de>: >>> Hell

Re: [Interest] MSVC 2013 Bug?

2015-11-12 Thread Elvis Stansvik
2015-11-12 23:22 GMT+01:00 Igor Mironchik : > > > On 13.11.2015 00:44, Thiago Macieira wrote: >> >> On Thursday 12 November 2015 23:56:20 Igor Mironchik wrote: First of all, allocating memory when throwing exceptions is bad practice. Avoid it by

<    1   2   3   4   5   >