Re: [Interest] Hide icon in a QComboBox associated with a Model

2013-08-23 Thread Scott Aron Bloom
If you are on Qt 5 yes :) From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of André Somers Sent: Friday, August 23, 2013 9:16 AM To: interest@qt-project.org Subject: Re: [Interest] Hide icon in a QComboBo

Re: [Interest] Qt5 toolchain for arm

2013-08-23 Thread Thiago Macieira
On sexta-feira, 23 de agosto de 2013 23:14:15, Simone wrote: > Hello, > I have finished today to build my custom image with yocto, for our embedded > board (platform freescale imx53). In the image I've compiled successfully > the qt5.1.0 libraries (meta-qt5). > > Now the problem is: how I can deve

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Thiago Macieira
On sexta-feira, 23 de agosto de 2013 15:15:57, Alex Malyushytskyy wrote: > QTemporaryFile attached to file which is not anymore > under control. > This would be even more confusing and made documented features wrong: > "the file will subsequently be removed upon destruction of the > QTemporaryFile

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Alex Malyushytskyy
>> I can't say that I am very happy with a non-closing close() and a lying isOpen(). Even if documented, it goes against any expectations. I disagree, then You would have QTemporaryFile attached to file which is not anymore under control. This would be even more confusing and made documented feat

[Interest] QML Virtual Keyboard + QWebview Text Inputs?

2013-08-23 Thread Mitchell Verter
Hi. I have designed a Virtual Keyboard using QML and am trying to use it in conjunction with a Qt (not QML) Webview. I've been following the clues given in this posting http://qt-project.org/forums/viewthread/11237 . Namely: (1) Create a custom object and then addToJavaScriptWindowObject

[Interest] Qt5 toolchain for arm

2013-08-23 Thread Simone
Hello, I have finished today to build my custom image with yocto, for our embedded board (platform freescale imx53). In the image I've compiled successfully the qt5.1.0 libraries (meta-qt5). Now the problem is: how I can develop for the linux platform? I would generate the toolchain (like the on

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Guido Seifert
> open() means it succeeded in opening. > > QTemporaryFile::close() truncates and repositions, but doesn't *close* the > file. If you really want to close, destroy the object or force it to open a > new > file (with a new name). Bah, stupid me. Wrong function. I meant of course 'isOpen()', so

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Thiago Macieira
On sexta-feira, 23 de agosto de 2013 19:53:42, Guido Seifert wrote: > Hi, Thiago. > > > QTemporaryFile keeps the file open. You can't delete it with > > QFile::remove, you have to let QTemporaryFile do it. Or, you must destroy > > the QTemporaryFile object first, so it will actually close the file

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Guido Seifert
Hi, Thiago. > QTemporaryFile keeps the file open. You can't delete it with QFile::remove, > you > have to let QTemporaryFile do it. Or, you must destroy the QTemporaryFile > object first, so it will actually close the file. Then you can delete it. This is strange. Of course I checked with op

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Thiago Macieira
On sexta-feira, 23 de agosto de 2013 14:33:06, Guido Seifert wrote: > Of course I thought, that the problem is somewhere in my code, however, here > is what I did: I created a QTemporaryFile object just to get a unique > filename. I dropped the object at once, I did not use it. But with the > uniqu

Re: [Interest] MOC and QT_VERSION_CHECK bug??

2013-08-23 Thread Thiago Macieira
On sexta-feira, 23 de agosto de 2013 14:26:44, Carel Combrink wrote: > I am trying to get code to compile with both Qt 4 and Qt 5 bit it seems > like MOC in Qt 4 (or qmake) does not understand QT_VERSION_CHECK and I get > some strange outputs in the MOC file. In Qt 4, moc does not expand macros. S

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Mandeep Sandhu
On Fri, Aug 23, 2013 at 10:24 PM, Constantin Makshin wrote: > g++ isn't bad at all, but sometimes its error messages may be quite > confusing/cryptic. > Agreed. Rather in some cases it _did_ tell me that i needed to prefix 'typename' in given line, but unfortunately in this stmt it chose a more c

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Mandeep Sandhu
On Fri, Aug 23, 2013 at 10:34 PM, Konstantin Tokarev wrote: > > 23.08.2013, 20:39, "Mandeep Sandhu" : > >> Error from Clang: > >> > >> error: template argument for template type parameter must be a type; > did you forget 'typename'? > > > > It' right, in that I need to use typename 'somewhere', I

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Konstantin Tokarev
23.08.2013, 20:55, "Constantin Makshin" : > g++ isn't bad at all, but sometimes its error messages may be quite > confusing/cryptic. s/sometimes/most of the time/ -- Regards, Konstantin ___ Interest mailing list Interest@qt-project.org http://lists.

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Konstantin Tokarev
23.08.2013, 20:39, "Mandeep Sandhu" : >> Error from Clang: >> >>  error: template argument for template type parameter must be a type; did >> you forget 'typename'? > > It' right, in that I need to use typename 'somewhere', I just didn't know > where (and why). Clang shows a caret where you nee

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Constantin Makshin
g++ isn't bad at all, but sometimes its error messages may be quite confusing/cryptic. On Aug 23, 2013 8:39 PM, "Mandeep Sandhu" wrote: > >> Error from Clang: >> >> error: template argument for template type parameter must be a type; did >> you forget 'typename'? >> > > It' right, in that I need

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Mandeep Sandhu
> > > Error from Clang: > > error: template argument for template type parameter must be a type; did > you forget 'typename'? > It' right, in that I need to use typename 'somewhere', I just didn't know where (and why). I finally fixed it doing a typedef of this dependent type, which also makes i

Re: [Interest] Hide icon in a QComboBox associated with a Model

2013-08-23 Thread André Somers
Op 23-8-2013 17:58, Scott Aron Bloom schreef: Create a proxy model (derive from QSortFilterProxyModel if you have never created one and don't have any sorting or filtering turned on) and override the data method, returning QVariant for the icon role. Then set the source model for the proxy m

Re: [Interest] Hide icon in a QComboBox associated with a Model

2013-08-23 Thread Scott Aron Bloom
Create a proxy model (derive from QSortFilterProxyModel if you have never created one and don’t have any sorting or filtering turned on) and override the data method, returning QVariant for the icon role. Then set the source model for the proxy model, to your original, and the model for the com

[Interest] Hide icon in a QComboBox associated with a Model

2013-08-23 Thread Etienne Sandré-Chardonnal
Dear all, I have a model representing the objects loaded in my app. This model provides icons for the IconRole, so that the object list docking widget looks nice. In another control, I want to link a QComboBox with the model. This works very well as the QComboBox updates itself with the model upd

Re: [Interest] What is beginInsertRows() purpose?

2013-08-23 Thread Paul Miller
On 8/23/2013 9:08 AM, Etienne Sandré-Chardonnal wrote: > But... I always wondered why it is necessary to have both signals (one > before and one after) in the underlying mechanism, and what could be > wrong in doing: > > -modify the model underlying data structure by inserting rows- > beginInsertRo

Re: [Interest] Quick Controls Menu questions

2013-08-23 Thread deDietrich Gabriel
Hi, On Aug 23, 2013, at 9:49 AM, Ola Røer Thorsen wrote: > - Is it possible to do complete styling of the Menu? There is some > things in the source code it seems, but it's not documented. Maybe more > features are planned in Qt 5.2? We plan to extend the set of styleable controls for 5.2, in

[Interest] What is beginInsertRows() purpose?

2013-08-23 Thread Etienne Sandré-Chardonnal
I'm using this in Model/View classes for a while without any issue. But... I always wondered why it is necessary to have both signals (one before and one after) in the underlying mechanism, and what could be wrong in doing: -modify the model underlying data structure by inserting rows- beginInser

Re: [Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Mark
On Fri, Aug 23, 2013 at 2:33 PM, Guido Seifert wrote: > Hi, I just had some trouble with a strange undeletable QTemporaryFile. Of > course only under Windows. Under Linux the code worked perfectly. Now I know, > that Windows has troubles to remove open files, but this was not the problem > (I t

Re: [Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Konstantin Tokarev
23.08.2013, 16:43, "Mandeep Sandhu" : > Hi All, > > I'm writing a template class which contains a QHash. Now if I try to store an > Iterator (of a QList) as the _value_ of this Hash then it fails to compile. > > Here's the sample code: > > template > class TemplateTest > { > public: >     Templa

[Interest] Strange problem in template class (Iterator as value type of a QHash)

2013-08-23 Thread Mandeep Sandhu
Hi All, I'm writing a template class which contains a QHash. Now if I try to store an Iterator (of a QList) as the _value_ of this Hash then it fails to compile. Here's the sample code: template class TemplateTest { public: TemplateTest() { QHash::iterator > h; Q_UNUSED(

[Interest] Strange undeletable QTemporaryFile. Is it a bug?

2013-08-23 Thread Guido Seifert
Hi, I just had some trouble with a strange undeletable QTemporaryFile. Of course only under Windows. Under Linux the code worked perfectly. Now I know, that Windows has troubles to remove open files, but this was not the problem (I think). I created a QTemporaryFile and disabled autoremove (set

[Interest] MOC and QT_VERSION_CHECK bug??

2013-08-23 Thread Carel Combrink
(This message is a repost of a question asked on the forum, found here ) Hi, I am trying to get code to compile with both Qt 4 and Qt 5 bit it seems like MOC in Qt 4 (or qmake) does not understand QT_VERSION_CHECK and I get some strange outpu

[Interest] Quick Controls Menu questions

2013-08-23 Thread Ola Røer Thorsen
Hi, I'm planning a Quick2-based application that will run on an embedded Linux device (similar to Raspberry PI) where the application is the only user of the framebuffer (no X11). The application will be controlled by keyboard cursor keys only. I have been doing some mockups on the desktop wit

Re: [Interest] [Solved] Qimage showing grayed out images

2013-08-23 Thread Amogh Kudari
Hi All, I finally resolved the problem. I had Qt installed in my desktop PC where as I just copied the installed Qt libs from desktop to laptop. And on the qpa plugin side I had only copied minimal plugins. But for minimal plugin to work properly It requires other installed plugins like bearer,