Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread John Weeks
> But when childAdded is called… child already has been added. That's the > issue, model is not manipulating data, it's just supposed to react on their > changes OK, I finally decided to look at our code and the documentation :) QAbstractItemModel has protected functions beginInsertRows and end

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Sébastien Le Ray
Le 04/08/2016 à 23:34, John Weeks a écrit : On Aug 4, 2016, at 2:19 PM, Sébastien Le Ray wrote: That's what I do, but the signal says childAdded, where model needs childWillBeAdded and childHasBeenAdded to handle beginInsertRows/endInsertRows, same for the removal so that's not working. Wor

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread John Weeks
> On Aug 4, 2016, at 2:19 PM, Sébastien Le Ray wrote: > > That's what I do, but the signal says childAdded, where model needs > childWillBeAdded and childHasBeenAdded to handle > beginInsertRows/endInsertRows, same for the removal so that's not working. > Worst case is for the removal, since

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Sébastien Le Ray
Hi, Thanks for the pointer (guess I already read it while searching). The second answer is what I'm currently heading toward but that's quite cumbersome Le 04/08/2016 à 22:20, Bernhard Lindner a écrit : I have seen that problem before: http://stackoverflow.com/q/36412671/1421332 Unfortuna

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Sébastien Le Ray
Le 04/08/2016 à 20:45, Igor Mironchik a écrit : Hi, On 04.08.2016 20:52, Sébastien Le Ray wrote: Hi Thanks for your answer I know about xxxInsertRow but these are meant to be called by the model (or at least by a class that has knowledge of the model). The question is how to properly call

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Bernhard Lindner
I have seen that problem before: http://stackoverflow.com/q/36412671/1421332 Unfortunately no answer there too. > I'm not sure what are you talking about. But what about > beginInsertRows() and endInsertRows()? Between this methods you should > add new data, and this data can has child rows. >

Re: [Interest] Second RowLayout not reconize width

2016-08-04 Thread Máximo Ramírez
Dear Oleg, Thanks. Now is right I changed like you suggest me. ColumnLayout { anchors.fill: parent nothing for first Row and for TabBar in second Row Layout.fillWidth: true I noted two things: 1. If I add anchors.fill: parent to one or both RowLayout the app not

Re: [Interest] [Development] [QML] Avoiding graphics flicker in Quick2

2016-08-04 Thread Jason H
I'm betting it is due to a buggy driver (GL) implementation.  I've never seen QtQuick2 flicker.   Sent: Thursday, August 04, 2016 at 7:50 AM From: "Denis Shienkov" To: "developm...@qt-project.org" , "interest@qt-project.org" , "Laszlo Agocs" Subject: [Interest] [Development] [QML] Avoiding gr

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Igor Mironchik
Hi, On 04.08.2016 20:52, Sébastien Le Ray wrote: Hi Thanks for your answer I know about xxxInsertRow but these are meant to be called by the model (or at least by a class that has knowledge of the model). The question is how to properly call it when the only notification you get from the d

Re: [Interest] RowLayout are overlapping

2016-08-04 Thread Oleg Evseev
This things are in basic qtquick-layouts-example http://doc.qt.io/qt-5/qtquick-layouts-example.html In which part of documentation you think it should be else? 2016-08-04 19:11 GMT+03:00 Máximo Ramírez : > Dear Oleg, > > Thanks work perfectly. > > This are the things that should be explicitly i

Re: [Interest] Second RowLayout not reconize width

2016-08-04 Thread ekke
add a Layout.fillWidth: true for your ColumnLayout - RowLayout automaticlly fills the width Am 04.08.16 um 20:23 schrieb Máximo Ramírez: > > Hello, > > I'm trying to do a navigation header for my app. I have ColumnLayout > and two RowLayout, but only the first RowLayout recognize width, the > seco

Re: [Interest] Second RowLayout not reconize width

2016-08-04 Thread Oleg Evseev
Hi, Máximo Please carefully read documentation, there is all you need. http://doc.qt.io/qt-5/qml-qtquick-layouts-columnlayout.html http://doc.qt.io/qt-5/qml-qtquick-layouts-rowlayout.html http://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html use Layout.fillWidth > RowLayout { > width: hea

[Interest] Second RowLayout not reconize width

2016-08-04 Thread Máximo Ramírez
Hello, I'm trying to do a navigation header for my app. I have ColumnLayout and two RowLayout, but only the first RowLayout recognize width, the second not. I passed the width directly but still is not recognized. This is like is showed: http://imgur.com/a/bSr8H But I want that the two rows oc

Re: [Interest] Relationship between a QEventLoop and QCoreApplication::exec().

2016-08-04 Thread Thiago Macieira
On quinta-feira, 4 de agosto de 2016 10:32:26 PDT John Weeks wrote: > > On Aug 4, 2016, at 10:04 AM, Thiago Macieira > > wrote: > > > > Starting an event loop from inside another event loop. > > > > exec() → some slot or event handler → exec() > > OK, so that would cover any use of QEventLoop::

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Sébastien Le Ray
Hi Thanks for your answer I know about xxxInsertRow but these are meant to be called by the model (or at least by a class that has knowledge of the model). The question is how to properly call it when the only notification you get from the data is "this row was added|removed". Regards Le

Re: [Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Igor Mironchik
Hi, I'm not sure what are you talking about. But what about beginInsertRows() and endInsertRows()? Between this methods you should add new data, and this data can has child rows. What is the problem? On 04.08.2016 19:48, Sébastien Le Ray wrote: Hi list, I'm currently designing an applicat

Re: [Interest] Relationship between a QEventLoop and QCoreApplication::exec().

2016-08-04 Thread John Weeks
> On Aug 4, 2016, at 10:04 AM, Thiago Macieira > wrote: > > Starting an event loop from inside another event loop. > > exec() → some slot or event handler → exec() OK, so that would cover any use of QEventLoop::exec() in the main thread. It would also seem to cover any use of QDialog::exec()

Re: [Interest] Relationship between a QEventLoop and QCoreApplication::exec().

2016-08-04 Thread Thiago Macieira
On quinta-feira, 4 de agosto de 2016 09:25:21 PDT John Weeks wrote: > At the risk of displaying my ignorance... > > Having followed this thread with great interest, I have come to the > conclusion that perhaps I'm not really certain what you mean by "nested". > Any chance of an example? Starting

[Interest] Design Issue with QAbstractItemModel & QTreeView

2016-08-04 Thread Sébastien Le Ray
Hi list, I'm currently designing an application which presents its data in a tree. I have a QAbstractItemModel making a bridge between these data and the view, so far so good. However I'm stuck when it comes to react to underlying data structure changes, specifically when rows are added and

Re: [Interest] Relationship between a QEventLoop and QCoreApplication::exec().

2016-08-04 Thread John Weeks
At the risk of displaying my ignorance... Having followed this thread with great interest, I have come to the conclusion that perhaps I'm not really certain what you mean by "nested". Any chance of an example? > On Aug 3, 2016, at 10:31 PM, Thiago Macieira > wrote: > > I disagree. You shoul

Re: [Interest] RowLayout are overlapping

2016-08-04 Thread Máximo Ramírez
Dear Oleg, Thanks work perfectly. This are the things that should be explicitly in the documentation. El 04/08/16 a las 04:20, Oleg Evseev escribió: > Hi, Máximo > > Put them (two RowLayout) into ColumnLayout > > Regards, Oleg. > > 2016-08-04 10:28 GMT+03:00 Máximo Ramírez

Re: [Interest] dynamic widget creation in QScrollArea

2016-08-04 Thread Reto Tschofenig, ODT Informatik GmbH
Hi Frank if the children are the same type and it's like a table, I would recommend the following alternative: don't inherit from it QScrollArea but instantiate as many child widget's as visible. bind now the child-widgets depending of the position of the scrollbar with the object. > widge

Re: [Interest] Build Qt for command line only

2016-08-04 Thread Mike Jackson
Thiago Macieira wrote: On quinta-feira, 4 de agosto de 2016 00:41:59 PDT Scott Aron Bloom wrote: Im playing with the new Bash/WSL for windows 10, and want to create a Qt package. There is no X available, its only CLI based, what configuration options are the best for this setup? The XCB plugi

[Interest] [Development] [QML] Avoiding graphics flicker in Quick2

2016-08-04 Thread Denis Shienkov
{quote} Hi all. I have some QML application, where just use QQuickView as QML container. This application uses Qt 5.7.x and running on Linux embedded board with the NVIDIA core (Toradex Apalis T30). But sometimes I got flickering in process of animation. A flickering represents in form of a "whi

Re: [Interest] dynamic widget creation in QScrollArea

2016-08-04 Thread Bo Thorsen
Den 04-08-2016 kl. 10:05 skrev Frank Rueter | OHUfx: I am playing with the idea of writing a custom widget based on QScrollArea, where widgets are created as the user scrolls. I'm just hoping to bounce the general idea of you guys here to see if I'm heading in the right direction: I have a heap

Re: [Interest] RowLayout are overlapping

2016-08-04 Thread Oleg Evseev
Hi, Máximo Put them (two RowLayout) into ColumnLayout Regards, Oleg. 2016-08-04 10:28 GMT+03:00 Máximo Ramírez : > Hello, > > I'm trying to do top navigation bar based on drawer and tabs, but when I > put two RowLayout instead of show one first and the second after the > RowLayout are overlapp

[Interest] dynamic widget creation in QScrollArea

2016-08-04 Thread Frank Rueter | OHUfx
Hi all, I am playing with the idea of writing a custom widget based on QScrollArea, where widgets are created as the user scrolls. I'm just hoping to bounce the general idea of you guys here to see if I'm heading in the right direction: I have a heap of custom widgets, potentially thousands,

[Interest] RowLayout are overlapping

2016-08-04 Thread Máximo Ramírez
Hello, I'm trying to do top navigation bar based on drawer and tabs, but when I put two RowLayout instead of show one first and the second after the RowLayout are overlapping, like you see in the following images [only one RowLayout](http://imgur.com/a/xDxTa) [two RowLayout overlapped](http://