[Interest] QML ListView Transition/Animation when changing CurrentIndex

2012-10-05 Thread Ramakanthreddy_Kesireddy
Hi, I'm using Qt 5 Beta, QtQuick 2 and want to define Transitions when listview is loaded with different x,y positions of each listview. The delegate of the ListView contains a text and I want to change the highlight while changing to the next ListItem using key press. Is this possible? Th

Re: [Interest] QTextStream: output representation of floating point number with exactly n digits

2012-10-05 Thread Alex Malyushytskyy
setRealNumberNotation ( QTextStream::ScientificNotation ) with setRealNumberPrecision() to specify number of digits? Alex On Fri, Oct 5, 2012 at 3:59 PM, Rui Maciel wrote: > Is it possible to manipulate QTextStream so that it outputs a > representation of a float or a double with exactly n digi

[Interest] QTextStream: output representation of floating point number with exactly n digits

2012-10-05 Thread Rui Maciel
Is it possible to manipulate QTextStream so that it outputs a representation of a float or a double with exactly n digits? I've tried setRealNumberPrecision() but it doesn't appear to have any effect. Thanks in advance, Rui Maciel ___ Interest mailin

Re: [Interest] Protect qml files from changing

2012-10-05 Thread Charley Bay
> Николай Шатохин requesteth: >> I'm creating paid application. How can I protect my QML files from changing >> to avoid app cracking? Thiago respondeth: > The simplest way is to put them inside the application, as resources. The QML > engine can load from there and they're often compressed, meani

Re: [Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Sujan Dasmahapatra
One thing I want to share with you that if I code like this for(int z=0; z<21; z++) { Th = QtConcurrent::run(this,&UnrstParser,z); Th.waitForFinished(); } Then my writing data to the file is ok. No problem. But am I achieving concurrency with this. I think I am not. On Fri, Oct 5, 2012 at 8:58 PM,

Re: [Interest] Protect qml files from changing

2012-10-05 Thread Thiago Macieira
On sexta-feira, 5 de outubro de 2012 21.23.33, Николай Шатохин wrote: > Hello. > > I'm creating paid application. How can I protect my QML files from changing > to avoid app cracking? The simplest way is to put them inside the application, as resources. The QML engine can load from there and they'

[Interest] Protect qml files from changing

2012-10-05 Thread Николай Шатохин
Hello. I'm creating paid application. How can I protect my QML files from changing to avoid app cracking? Best regards, Nick. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Disconnecting signals when object destroyed

2012-10-05 Thread Николай Шатохин
Hello. I found that QML trying to call object's methods even when it destroyed. It's my main.qml file: import QtQuick 1.1 Rectangle { id: appWindow width: 360 height: 360 property int i: 0; property real step: 0.1; property Component component; signal trig

Re: [Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Thiago Macieira
On sexta-feira, 5 de outubro de 2012 20.53.29, Sujan Dasmahapatra wrote: > please check this code snippet. Tell me Sascha if this is > acceptable.Still it's not writing some data. Please stop sending code snippets. The problem is most likely not in the parts that you're sending. Please send

Re: [Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Sujan Dasmahapatra
please check this code snippet. Tell me Sascha if this is acceptable.Still it's not writing some data. [code] QSemaphore mSemaphore1; for (int z=0;zrelease(1); } [/code] On Fri, Oct 5, 2012 at 8:32 PM, Sascha Cunz wrote: > Am Freitag, 5. Oktober 2012, 20:20:40 schrieb Sujan Dasmahapatra:

Re: [Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Sascha Cunz
Am Freitag, 5. Oktober 2012, 20:20:40 schrieb Sujan Dasmahapatra: > This code snippet is nomore hanging. i did some mistake. but it's still the > same. not writing some data to the file. problem persists. whats still > going wrong please help. > > [code] > > > QSemaphore mSemaphore1; > > int nZ

Re: [Interest] sequential animations on ListView Elements

2012-10-05 Thread Scott Aron Bloom
There is no built in way with Qt. It can be done, not to difficult, I have done it for clients. Start with the docs for the IconRole and QTimer From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of

[Interest] Fwd: how to run 21 threads concurrently

2012-10-05 Thread Sujan Dasmahapatra
This code snippet is nomore hanging. i did some mistake. but it's still the same. not writing some data to the file. problem persists. whats still going wrong please help. [code] QSemaphore mSemaphore1; int nZ=1; for (int z=0;z wrote: > On 10/05/12 00:27, Sascha Cunz wrote: > > But, after all

Re: [Interest] how to run 21 threads concurrently

2012-10-05 Thread Sujan Dasmahapatra
Is this code snippet correct in using semaphores. It's hanging for me [code] QSemaphore mSemaphore1; int nZ=1; for (int z=0;z wrote: > On 10/05/12 00:27, Sascha Cunz wrote: > > But, after all, the above code is a so called busy-loop. It will eat up > 1 core > > almost completely (At least on m

Re: [Interest] Adding objects in QML and scrolling it

2012-10-05 Thread Mark
On Fri, Oct 5, 2012 at 4:29 PM, K. Frank wrote: > Hi Mark! > > [Off-topic reply to Mark's comment.] > > On Fri, Oct 5, 2012 at 2:41 AM, Mark wrote: >> On Fri, Oct 5, 2012 at 8:25 AM, Bo Thorsen wrote: >>> Den 04-10-2012 01:11, Николай Шатохин skrev: Hello. ... >> >> I really wonder why

[Interest] Custom QAbstractItemView (or similar) to display specific QModelIndex

2012-10-05 Thread Pierre-Étienne Messier
Hi, I am developing a preferences/settings framework using Qt model/view framework. My data structure is a tree containing various preferences. The various configuration "pages" are branches nodes, and each configuration items are leaf nodes. The first visual representation of this framework is d

Re: [Interest] How to know bindTexture failure

2012-10-05 Thread Calogero Mauceri
Il 05/10/2012 17.04, Samuel Rødal ha scritto: > On 10/05/2012 04:46 PM, Calogero Mauceri wrote: >> Hi, >> >> is there a way to know programmatically whether the >> QGLWidget::bindTexture function fails? >> Sometime my bindTexture fails, I can see in the log file there is a line >> reporting the bi

Re: [Interest] How to know bindTexture failure

2012-10-05 Thread Samuel Rødal
On 10/05/2012 04:46 PM, Calogero Mauceri wrote: > Hi, > > is there a way to know programmatically whether the > QGLWidget::bindTexture function fails? > Sometime my bindTexture fails, I can see in the log file there is a line > reporting the binding failure: > > texture upload failed, error code 0x

[Interest] How to know bindTexture failure

2012-10-05 Thread Calogero Mauceri
Hi, is there a way to know programmatically whether the QGLWidget::bindTexture function fails? Sometime my bindTexture fails, I can see in the log file there is a line reporting the binding failure: texture upload failed, error code 0x500, enum: 3553 (de1) but the bindTexture returns a valid t

Re: [Interest] Adding objects in QML and scrolling it

2012-10-05 Thread K. Frank
Hi Mark! [Off-topic reply to Mark's comment.] On Fri, Oct 5, 2012 at 2:41 AM, Mark wrote: > On Fri, Oct 5, 2012 at 8:25 AM, Bo Thorsen wrote: >> Den 04-10-2012 01:11, Николай Шатохин skrev: >>> Hello. >>> ... > > I really wonder why this mail decides to skip my filters and ends up > in my inbox

Re: [Interest] how to highlight a custome button on key down

2012-10-05 Thread Bo Thorsen
Den 05-10-2012 13:59, Satya Praveen Ganapathi skrev: Hi, I have a custome button "Button.qml" and I'm using this in another qml "menu.qml" *Button.qml* Recatangle{ //some properties Text{ Id:button // } } *menu.qml* ** ViewPort{ Item{ //Button.qml Button{ Id:button1 } Button{

[Interest] how to highlight a custome button on key down

2012-10-05 Thread Satya Praveen Ganapathi
Hi, I have a custome button "Button.qml" and I'm using this in another qml "menu.qml" Button.qml Recatangle{ //some properties Text{ Id:button // } } menu.qml ViewPort{ Item{ //Button.qml Button{ Id:button1 } Button{ Id:button2 }

Re: [Interest] how to run 21 threads concurrently

2012-10-05 Thread Jan Kundrát
On 10/05/12 00:27, Sascha Cunz wrote: > But, after all, the above code is a so called busy-loop. It will eat up 1 core > almost completely (At least on most OS-configurations). Are you sure that a call to QFuture::waitForFinished() consumes CPU? That would be highly suspicious. Yes, the call will

Re: [Interest] sequential animations on ListView Elements

2012-10-05 Thread Jan Kundrát
On 09/27/12 13:23, SUNIL KUMAR M wrote: > Please provide sample code for supporting animations on listview > elements separately.. Have you tried animating the delegate? And to expand a bit, what have you tried and what did not work? With kind regards, Jan -- Trojita, a fast e-mail client -- h

Re: [Interest] qt5: deprecated QAbstractItemModel::reset()

2012-10-05 Thread Jan Kundrát
On 10/04/12 18:09, Stephen Kelly wrote: > This sounds fishy. You must not return to the event loop between > beginResetModel and endResetModel. Yes, there was a bug in one of my proxies which re-entered the event loop (it was in response to rowCount because a common function called beginInsertRo

Re: [Interest] sequential animations on ListView Elements

2012-10-05 Thread Bill Crocker
On 09/27/2012 07:23 AM, SUNIL KUMAR M wrote: > Hai, > > I need sample code for doing animations on list-view elements in Qt > Smells like a home work assignment. > I created list-view menu where for each element there will be index, I want to > animate listview elements on properties like opacity

Re: [Interest] qt5: deprecated QAbstractItemModel::reset()

2012-10-05 Thread Stephen Kelly
On Thursday, October 04, 2012 18:24:08 Christian Kandeler wrote: > On 10/04/12 18:09, Stephen Kelly wrote: > > On Thursday, October 04, 2012 16:38:42 Jan Kundrát wrote: > >> I have always assumed that the users of the model are more or less free > >> to call a "reasonable" subset of model's functio

Re: [Interest] Send signal from non-GUI thread

2012-10-05 Thread Giuseppe D'Angelo
On 3 October 2012 11:43, Kio wrote: > > Connect signal in c'tor: > >> connect(this,SIGNAL(showNewWarning(cstr)),parent,SLOT(showNewWarning(cstr)),Qt::QueuedConnection); We need to see more code, or know in which thread "parent" lives as well as which thread runs the signal emission. This is suppo