Re: [Interest] Requesting QObject::bind() method

2017-03-21 Thread Thiago Macieira
Em terça-feira, 21 de março de 2017, às 22:58:38 PDT, Thiago Macieira escreveu: > Em terça-feira, 21 de março de 2017, às 19:38:19 PDT, Prashanth Udupa > > escreveu: > > QSlider *slider = ... > > QLabel *label = > > QObject::bind(slider, "value", label, "text”); > > This is a bad example be

Re: [Interest] Requesting QObject::bind() method

2017-03-21 Thread Prashanth Udupa
Hi Thiago, > This is a bad example because "text" is a string and would require a > conversion. True, but it is something that comes up a lot in applications. For instance, I want to allow users to (say) alter opacity using a slider. As the user changes opacity, I might want to show that value

Re: [Interest] Requesting QObject::bind() method

2017-03-21 Thread Thiago Macieira
Em terça-feira, 21 de março de 2017, às 19:38:19 PDT, Prashanth Udupa escreveu: > QSlider *slider = ... > QLabel *label = > QObject::bind(slider, "value", label, "text”); This is a bad example because "text" is a string and would require a conversion. But let's say we're connecting a slider

[Interest] Requesting QObject::bind() method

2017-03-21 Thread Prashanth Udupa
Hello All, QML offers property binding, which is supremely useful. So, in a QML code like this Item { id: oneItem width: anotherItem.width * 2 } Whenever anotherItem’s width changes, oneItem’s width is recomputed. From what I have seen we don’t have a direct way to make this kind of thi

Re: [Interest] QTreeView, QHeaderview, ResizeToContents and Interactive

2017-03-21 Thread Alexander Semke
On Sonntag, 19. März 2017 13:09:55 CET Alexander Semke wrote: > [...] > What is being delayed here? I'm not quite comfortable with the fixed timer > value and it doesn't work on my notebook for 0. Whatever is queued for > processing here, how to wait until it's completely done? > > void ProjectExp

Re: [Interest] QML Video component fails to stream video on Windows

2017-03-21 Thread Jason H
It has been a while since I did Windows Multimedia. And everytime I do there seems to be a new backend. But, with my dated experience, try a program called gspot and laod the file, it should tell you if it is missing a codec. There was also another told I used about 10 years ago, which drew the D

Re: [Interest] How to make WARP as fallback after d3d11 fails

2017-03-21 Thread Andy
Kai: Thank you for pointing at this! I think this might help explain my unanswered question towards the end of last year (21 Dec) about seeing machines in the wild that fail to create any OpenGL context at all. I had assumed there was always a way to get _something_. If I read it correctly, there

Re: [Interest] How to make WARP as fallback after d3d11 fails

2017-03-21 Thread Yuchen Deng
hi, Kai, Many thanks for you help. I've changed the blacklist file like this, and it's solved my requires. > diff --git a/src/plugins/platforms/windows/openglblacklists/default.json >> b/src/plugins/platforms/windows/openglblacklists/default.json > > index 1e00da5..a88de6e 100644 > > --- a/src/plu

Re: [Interest] How to paint smooth rendering of connected QLineF's?

2017-03-21 Thread Patrick Stinson
Here is the modified code from QtCharts which works well for me to return a QPainterPath made from bezier curves. I don’t understand the algorithm but got the code to work with no dependencies. The only problem now is to smoothly vary the pen width along the path to produce something like the a

Re: [Interest] How to make WARP as fallback after d3d11 fails

2017-03-21 Thread Kai Koehne
> -Original Message- > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org] > On Behalf Of Yuchen Deng > Sent: Tuesday, March 21, 2017 7:14 AM > To: interest@qt-project.org > Subject: [Interest] How to make WARP as fallback after d3d11 fails > hi, everyone, I have a ques