[Interest] Section ListWidget implementation

2013-10-16 Thread Ing. Rayner Pupo Gomez
Hi, is there any way to create a Qt ListWidget like the QML Section List example but using Widgets. Thanks. III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 2014. Ver www.

Re: [Interest] QtWebKit bridge wont convert JS Arrays to QVariant

2013-10-16 Thread Allan Sandfeld Jensen
On Wednesday 16 October 2013, equals...@gmx.com wrote: > > Perhaps my assumption that Qt would convert the array to QVariant is > wrong() - that was my understanding from the docs - I'm not using any > JS types other than arrays/objects/doubles/strings/bool. Qt versions here > are 5.1.0 and 5.1.1

[Interest] QtWebKit bridge wont convert JS Arrays to QVariant

2013-10-16 Thread equalsraf
Hi, I'm exposing an object and its methods to the javascript engine inside QtWebkit using QWebFrame::addToJavaScriptWindowObject(). Since I wanted to be able to pass most standard Javascript objects to a method I declared its argument as a QVariant. But this does not seem to work for arrays, inste

Re: [Interest] QTreeView and dynamic sorting

2013-10-16 Thread André Somers
Op 16-10-2013 15:04, Igor Mironchik schreef: Forgot to say that I use d->m_sortModel->setDynamicSortFilter(false); because of dynamic sorting moves the rows with the same value in a sorted column in its sole discretion from time to time. Still, here is your problem. The problem is that appeara

Re: [Interest] QTreeView and dynamic sorting

2013-10-16 Thread Igor Mironchik
Hi. Hi. I use QTreeView to display dynamic data. I.e. rows can be inserted during program execution dynamically and values in some column can be changed dynamically too. But I need QTreeView to be sorted by the given by user column when new rows added. I've connected to the rowsInserted si

Re: [Interest] QTreeView and dynamic sorting

2013-10-16 Thread Igor Mironchik
Forgot to say that I use d->m_sortModel->setDynamicSortFilter(false); because of dynamic sorting moves the rows with the same value in a sorted column in its sole discretion from time to time. Hi. I use QTreeView to display dynamic data. I.e. rows can be inserted during program execution

[Interest] QTreeView and dynamic sorting

2013-10-16 Thread Igor Mironchik
Hi. I use QTreeView to display dynamic data. I.e. rows can be inserted during program execution dynamically and values in some column can be changed dynamically too. But I need QTreeView to be sorted by the given by user column when new rows added. I've connected to the rowsInserted signal:

Re: [Interest] QSerialPort read issue

2013-10-16 Thread Denis Shienkov
Hi, > No offence but I don't think it's the matter of blocking or non-blocking.  Also I don't think waitForBytesWritten is a "MUST" as long as I wait enough time before next transmission.  The QtSerialPort is event-based entity. So, the write() method returns immediately. Because he writes data to

Re: [Interest] QSerialPort read issue

2013-10-16 Thread nus1998
Hi, No offence but I don't think it's the matter of blocking or non-blocking. Also I don't think waitForBytesWritten is a "MUST" as long as I wait enough time before next transmission. If QSerialPort is correct, I can only say that these APIs are out of my common sense. Best regards, Je

Re: [Interest] QSerialPort read issue

2013-10-16 Thread Denis Shienkov
Hi. 1. Do not use the blocking approach for the GUI app.2. After write() you should do waitForBytesWritten() or flush() in case of blocking approach. Summary: Use the non-blocking approach with the readyRead signal and do not use the waitForXXX() methods! Best regards,Denis   16.10.2013, 12:24, "nu

Re: [Interest] OSX newbie question on Qt5 src build

2013-10-16 Thread Mandeep Sandhu
On Wed, Oct 16, 2013 at 3:07 PM, Till Oliver Knoll wrote: > Am 16.10.2013 um 09:35 schrieb Mandeep Sandhu : > >> Hi All, >> >> I have a old iMac running OSX 10.5.8 (Xcode 3.1). >> >> Is it possible to build Qt5 on it or is it tool old a version? > > Given that not even Snow Leopard 10.6 is support

Re: [Interest] OSX newbie question on Qt5 src build

2013-10-16 Thread Samuel Gaist
On 16 oct. 2013, at 11:37, Till Oliver Knoll wrote: > Am 16.10.2013 um 09:35 schrieb Mandeep Sandhu : > >> Hi All, >> >> I have a old iMac running OSX 10.5.8 (Xcode 3.1). >> >> Is it possible to build Qt5 on it or is it tool old a version? > > Given that not even Snow Leopard 10.6 is suppor

[Interest] QIcon and multiple themes

2013-10-16 Thread Stefan Böhmann
Hi list, I want to provide a custom set of icons for my application without using resources (license and size constraints). So all icons are installed together with the application. I also have not only one single theme but a generic one (Oxygen for example), some specific (e.g. flags) and an a

Re: [Interest] OSX newbie question on Qt5 src build

2013-10-16 Thread Konstantin Tokarev
16.10.2013, 11:35, "Mandeep Sandhu" : > Hi All, > > I have a old iMac running OSX 10.5.8 (Xcode 3.1). > > Is it possible to build Qt5 on it or is it tool old a version? > > I'm following the guide here, but the minimum version of OSX/Xcode is > not mentioned (probably there isn't?): > > http://qt

[Interest] QtQuick 2.0 MouseArea onPositionChanged event propagation

2013-10-16 Thread Nils Jeisecke
Hi list, I just once again stumbled over the limitation that positionChanged events in a MouseArea don't propagate to ancestor MouseAreas. As the docs say "The accepted property of the MouseEvent parameter is ignored in this handler." Is this set in stone? What's the rationale behind this? Nils

Re: [Interest] QSerialPort read issue

2013-10-16 Thread nus1998
Hi, the simple code is followed, I use wizard to generate qt gui application in widget method for "#if 1", the message is "port open, A, A, done", for "#if 0", the message is "port open, A, B, done" #include #include Widget::Widget(QWidget*parent): QWidget(parent), ui(newUi::Widget) { ui->setu

Re: [Interest] QSerialPort read issue

2013-10-16 Thread Denis Shienkov
 Hi. > I just test it, so I think blocking method is not the issue.  and even when I use "connect(m_serial, SIGNAL(readyRead()), this, SLOT(serialRead())); "mostly the serialRead slot can read nothing too.. Seems, you do something wrong.  >Can't read data:>waitForReadyRead(1000);>read(data, 1);  Sa

Re: [Interest] QSerialPort read issue

2013-10-16 Thread nus1998
Hi, I just test it, so I think blocking method is not the issue. and even when I use "connect(m_serial, SIGNAL(readyRead()), this, SLOT(serialRead())); " mostly the serialRead slot can read nothing too.. I tested the following two sample on a loopthrough uart, which make me confused since ther

Re: [Interest] QSerialPort read issue

2013-10-16 Thread Denis Shienkov
Hi. You wrong do it, because it isn't recommended to use the waitForXXX() methods from an main GUI thread. You should use the non-blocking approach because it is preferred way, e.g. see the Terminal example or Master and Slave Examples from the QtSerialPort sources. Best regards,Denis  16.10.2013,

Re: [Interest] QSerialPort read issue

2013-10-16 Thread Denis Shienkov
Hi. It is normal. Because in case use the blocking approach the Qt-event loop is not used. Thus, any calls bytesAvailable() or read() or write() methods won't have effect. You should call waitForReadyRead() before read() and bytesAvailable(), and waitForBytesWritten() after write(). e.g. // writer

[Interest] OSX newbie question on Qt5 src build

2013-10-16 Thread Mandeep Sandhu
Hi All, I have a old iMac running OSX 10.5.8 (Xcode 3.1). Is it possible to build Qt5 on it or is it tool old a version? I'm following the guide here, but the minimum version of OSX/Xcode is not mentioned (probably there isn't?): http://qt-project.org/wiki/Building_Qt_5_from_Git Any tip is app