<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 14/02/2016 06:13, Dirk Hohndel
wrote:<br>
</div>
<blockquote cite="mid:20160214041320.GJ3036@rrmbpvm.gr8dns.org"
type="cite">
<pre wrap="">
On Sat, Feb 13, 2016 at 08:55:27PM +0200, Willem Ferguson wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> I need to filter the above dive computer names to those with FTDI
interfaces. In libdivecomputer the dc_descriptor_t contains a lot of
information, for instance the transport definition. In addition there is
dc_type that also has information. Which is the mechanism to detect
which compuyers have an FTDI interface?
</pre>
</blockquote>
<pre wrap="">
I don't think there's a way to tell from their descriptor. We may have to
white-list the ones that we know works. Manually.</pre>
</blockquote>
<br>
:-((((<br>
<br>
<blockquote cite="mid:20160214041320.GJ3036@rrmbpvm.gr8dns.org"
type="cite">
<blockquote type="cite">
It makes very much sense, but the problem is that QComboBox
takes a
variable of data type 'real' to indicate progress. No indication
on
</blockquote>
<pre wrap="">
You lost me. Do you mean the QML type ProgressBar?
Not sure where a QComboBox needs a real.</pre>
</blockquote>
<br>
From Qt manual:<br>
<br>
QProgressBar<br>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#hovered-prop">hovered</a></b></b>
: bool</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#indeterminate-prop">indeterminate</a></b></b>
: bool</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#maximumValue-prop">maximumValue</a></b></b>
: real</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#minimumValue-prop">minimumValue</a></b></b>
: real</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#orientation-prop">orientation</a></b></b>
: int</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#style-prop">style</a></b></b>
: Component</li>
<li class="fn"><b><b><a
href="http://doc.qt.io/qt-5/qml-qtquick-controls-progressbar.html#value-prop">value</a></b></b>
: real</li>
</ul>
<br>
value : real<br>
<div class="qmlitem">
<div class="qmldoc">
<p>This property holds the progress bar's current value.
Attempting to change the current value to one outside the
minimum-maximum range has no effect on the current value.</p>
<p>The default value is <code>0</code>.</p>
</div>
</div>
<blockquote cite="mid:20160214041320.GJ3036@rrmbpvm.gr8dns.org"
type="cite">
<blockquote type="cite">
<pre wrap="">whether this is 16-bit, 32-bit or even longer. In c++ I translated that
as float but this is currently not working. The combobox value is not
overloaded for other formats. Calling the setter that provides a float
from C++ currently creates a segfault. But I will get there.
</pre>
</blockquote>
<pre wrap="">
Can you post a piece of code?</pre>
</blockquote>
<br>
No need, I solved the problem by passing a QVariant instead of a
float. Works now :-)<br>
<br>
The only thing I have to do now is to do the filtering of suitable
devices. Then the REAL obstacle: getting the download itself to
work. I will start with some preparations today. Will send patch a
little later today.<br>
<br>
Kind regards,<br>
willem<br>
<br>
<br>
<br>
</body>
</html>