Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
2016-06-08 23:59 GMT+02:00 Jason H : > I'm coming into this late, but can't you just set up: > > Item { // delegate > > Item { > id: view1 > visible: some_data_item_property == true > } > Item { > id: view2 > visible: !view1.visible > } > } > > Then make

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Jason H
I'm coming into this late, but can't you just set up:   Item { // delegate     Item {     id: view1      visible: some_data_item_property == true   }   Item {     id: view2     visible: !view1.visible   } }   Then make view1 and view2 your different delegates? You're just going

Re: [Interest] Fwd: QtCreator 3.6.1 on Linux

2016-06-08 Thread Konstantin Shegunov
On Wed, Jun 8, 2016 at 8:04 PM, Igor Mironchik wrote: > > Where was cursor when you pressed Ctrl+Tab? When you press this > combination windows with files appear... And if your cursor was on this > window then shape returns correctly. But if cursor is outside that window

Re: [Interest] Fwd: QtCreator 3.6.1 on Linux

2016-06-08 Thread Konstantin Shegunov
No, sorry I don't observe that. I'm running Debian testing (4.5 kernel) with Qt creator 3.6.1. The cursor returns to its proper text-hover shape as soon as I release the Ctrl and Tab keys. Kind regards. On Wed, Jun 8, 2016 at 5:32 PM, Igor Mironchik wrote: > Hi, > >

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
2016-06-08 15:41 GMT+02:00 Kristoffersen, Even (NO14) < even.kristoffer...@honeywell.com>: > Have you tried something like this in the delegate? > > property alias some_descriptive_name: parent It seems it's not allowed to use parent as the target of an alias (?):

Re: [Interest] Fwd: QtCreator 3.6.1 on Linux

2016-06-08 Thread Igor Mironchik
Hi, On 08.06.2016 11:52, Majid Kamali wrote: I have the same Issue on Qt Creator 3.6.1 I think it is very old bug, because I saw that in videos created by voidrealms owner, he uses Qt Creator 2.x I think (with Qt 4.8) Before 3.6.1 all was fine. ___

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Gian Maxera
> On 8 Jun 2016, at 14:32, Elvis Stansvik wrote: > > Hi all, > > I'm currently using a "type" role in my items and then a Loader as > delegate, to give a level of indirection and let me choose the actual > delegate based on the "type" of the item. > > This explains it

Re: [Interest] [Qml][Item][Node] Determine if Item is rendered

2016-06-08 Thread Jérôme Godbout
Thanks, this is what I though. Since we are using reparenting to make the switch, I figured I could recusirvely check if parent can climb back to the root item or not. This is particulary unefficient but can be done a single time on parentChange (this doesn't support dynamic hierarchie above

Re: [Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
2016-06-08 15:32 GMT+02:00 Elvis Stansvik : > Hi all, > > I'm currently using a "type" role in my items and then a Loader as > delegate, to give a level of indirection and let me choose the actual > delegate based on the "type" of the item. > > This explains it better (from my

[Interest] Awkwardness of delegates in heterogenous ListViews

2016-06-08 Thread Elvis Stansvik
Hi all, I'm currently using a "type" role in my items and then a Loader as delegate, to give a level of indirection and let me choose the actual delegate based on the "type" of the item. This explains it better (from my ListView): delegate: Loader { sourceComponent: {

Re: [Interest] Blind binding crash on Qml instantiation

2016-06-08 Thread Jason H
> Em terça-feira, 7 de junho de 2016, às 19:36:15 PDT, Nuno Santos escreveu: > > That’s the question! Completely blind > > > > I have a complex C+ structure with property. Each property can have more > > than one property. > > > > I have a few guesses but couldn’t confirm any of them. > > Do a

[Interest] How to set absolute Qt3D::QCamera rotation/orientation

2016-06-08 Thread Ola Røer Thorsen
I need to set a Qt3D::QCamera orientation directly. I've got the position in a QVector3D and the rotation in a QQuaternion. I can't seem to find any API for this. The "rotate"-function just adds my quaternion to the existing orientation which is not what I'm looking for. Is there some better way

[Interest] Fwd: QtCreator 3.6.1 on Linux

2016-06-08 Thread Majid Kamali
I have the same Issue on Qt Creator 3.6.1 I think it is very old bug, because I saw that in videos created by voidrealms owner, he uses Qt Creator 2.x I think (with Qt 4.8) ___ Interest mailing list Interest@qt-project.org

[Interest] Module error

2016-06-08 Thread Federico Buti
Hi list, I've a runtime error related to new controls. On Windows with MinGW version of Qt everything works fine when compiled in debug mode whereas in release mode I got the following error: FTL Can't load. Errors: qrc:///main.qml:2:1: module "Qt.labs.controls" is not installed The same

Re: [Interest] QtCreator 3.6.1 on Linux

2016-06-08 Thread Alexander Görtz
Hi, it's the same for me on Arch with Qt Creator 4.0.0, but everything that triggers the mouse enter event after the Ctrl Tab switch restores the text marker cursor, even hoovering over a tooltip, so not a real problem for me. > That's true for me as well running QtCreator 4.0.0 on Ubuntu

Re: [Interest] TableView has no rows/columns when initial modelChanged is emitted, bug?

2016-06-08 Thread Elvis Stansvik
2016-06-08 9:46 GMT+02:00 Elvis Stansvik : > Hi all, > > Consider the following: > > import QtQuick 2.4 > import QtQuick.Window 2.2 > import QtQuick.Controls 1.3 > > Window { > width: 500 > height: 500 > > ListModel { > id: libraryModel > ListElement

[Interest] TableView has no rows/columns when initial modelChanged is emitted, bug?

2016-06-08 Thread Elvis Stansvik
Hi all, Consider the following: import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { width: 500 height: 500 ListModel { id: libraryModel ListElement { title: "A Masterpiece" } } TableView { model:

Re: [Interest] QtCreator 3.6.1 on Linux

2016-06-08 Thread Dmitry Volosnykh
That's true for me as well running QtCreator 4.0.0 on Ubuntu 14.04. On Wed, Jun 8, 2016 at 9:54 AM Igor Mironchik wrote: > Hi, > > Do you guys have the same problem with QtCreator 3.6.1 on Linux as me: > > guess that you have opened in QtCreator some source files. When

[Interest] QtCreator 3.6.1 on Linux

2016-06-08 Thread Igor Mironchik
Hi, Do you guys have the same problem with QtCreator 3.6.1 on Linux as me: guess that you have opened in QtCreator some source files. When mouse cursor is on text you see text's cursor shape (some kind of vertical line). Then switch to the next source file with Ctrl+Tab. And now cursor's