Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Shriramana Sharma
On Fri, Aug 31, 2012 at 11:55 AM, Tony Rietwyk wrote: > If you set the enclosing Widget size policy to Fixed, then it should use the > minimum required for its layout anyway. You can also play with the > layout's size constraint property. Hi thanks to all who replied. I might consider using a

Re: [Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Thiago Macieira
On sexta-feira, 31 de agosto de 2012 09.22.15, Syam Krishnan wrote: > However, why does Qt have two versions when the document mentions only one? Because I was lazy when I added the second overload and forgot to add the documentation. -- Thiago Macieira - thiago.macieira (AT) intel.com Software

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Tony Rietwyk
If you set the enclosing Widget size policy to Fixed, then it should use the minimum required for its layout anyway. You can also play with the layout's size constraint property. Tony. > Sent: Friday, 31 August 2012 4:05 PM > > On Fri, Aug 31, 2012 at 11:24 AM, Shriramana Sharma > wrote: >

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Shriramana Sharma
On Fri, Aug 31, 2012 at 11:24 AM, Shriramana Sharma wrote: > radioWidth = refPtArray [ 0 ] [ 0 ] . sizeHint () . width () > refPtWidget . setFixedSize ( radioWidth * 3 - 10, radioWidth * 3 - 10 ) > > Actually the last line should read radioWidth * 3 + 1 if I am to go by > uic's default output but

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Shriramana Sharma
On Fri, Aug 31, 2012 at 8:28 AM, Syam Krishnan wrote: > Try having another QWidget as the background parent widget of the > buttons. Set it to have fixed size and set maximum (and minimum) size. > Now you cat try to have a QGridLayout on it and add your radio buttons > to the 3x3 grid. Hi thanks

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread David Boosalis
Another way is to use QToolButton instead of QCheckBox. For each button do something like this: QIcon Icon; QPixmap pm(":/images/off.png"); QPixmap pmSelected(":/images/on.png"); Icon.addPixmap(pm,QIcon::Normal,QIcon::Off); Icon.addPixmap(pmSelected,QIcon::Normal,QIcon::On); QToolButton

Re: [Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Syam Krishnan
On 08/31/2012 08:25 AM, Rohan McGovern wrote: > Syam Krishnan said: >> >> This version (qreal is a typedef to double) is matching with the >> documentation (even Qt5 documentation mentions only qreal). >> Should this be reported as a bug against Qt5? Another function >> qRound6

Re: [Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Syam Krishnan
On 08/31/2012 05:07 AM, Shriramana Sharma wrote: > > Can anyone please tell me how to set the width of the radio button > same as the height (since only the button part and no label is being > displayed) and hwo to ensure that the components of this cluster are > fixed w.r.t one another when the wi

Re: [Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Rohan McGovern
Syam Krishnan said: >Hi >I downloaded Qt5 and compiled it successfully on Fedora 17, x86-64, gcc >4.7.0. >The I tried to build Qwt (svn version) against it and hit a compile >error: >--- >--- >timesc

[Interest] Qt5 - Application compile error on overloaded qRound()

2012-08-30 Thread Syam Krishnan
Hi I downloaded Qt5 and compiled it successfully on Fedora 17, x86-64, gcc 4.7.0. The I tried to build Qwt (svn version) against it and hit a compile error: -- timescalee

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Yang Fan
I always build the clang from its SVN trunk on my 10.6.7, the generated clang tool set could compile Qt 4.8.2 with some small patches which can be found by Google. On Thu, Aug 30, 2012 at 11:08 PM, Michael Jackson wrote: > > On Aug 30, 2012, at 11:00 AM, Till Oliver Knoll wrote: > > > Am 30.08.2

Re: [Interest] Clarification re destructor in subclass of QWidget

2012-08-30 Thread Shriramana Sharma
On Thu, Aug 16, 2012 at 10:57 PM, Marc Mutz wrote: > use a RAII Hi thanks for all who responded on this thread. Sorry my reply is delayed. I adopted a similar strategy for my program. -- Shriramana Sharma ___ Interest mailing list Interest@qt-project.

[Interest] How to produce a cluster of radio buttons?

2012-08-30 Thread Shriramana Sharma
Hello. I'm trying to produce a layout similar to the attached, where nine radio buttons are set out in a 3x3 cluster. I am producing the QRadioButton-s and trying stuff like setSizePolicy ( QSizePolicy :: Fixed, QSizePolicy :: Fixed ), resize ( height (), height () ) etc but all I get is radio butt

Re: [Interest] Getting the list of mounted network volumes

2012-08-30 Thread Stephen Chu
On 8/30/12 3:38 PM, Till Oliver Knoll wrote: > > Am 30.08.2012 um 19:44 schrieb Stephen Chu : > >> ... >> >> I guess I will have to do platform specific code for this. > > On Mac I *think* everything under /Volumes can be considered mounted (not > sure about network/NFS mounted drives though). > >

[Interest] Images not loading under Linux

2012-08-30 Thread Bob Hood
I have a small project that has a number of PNG images I use for menu entries. Everything works correctly under Windows. However, compiling (using either the command-line Makefile or Qt Creator) and running the same project under Linux using the Qt SDK 1.2.1 displays none of the images. I have v

[Interest] qqmlcomponent loaded synchronously when it should be loaded asynchronously

2012-08-30 Thread Morgan McKenzie
Hi, I've been making a bit of a program built in QT, using C++ and qtquick. I've been working in QT5 (built from git). The issue I'm having is that I'm trying to load a few qml files from the C++ end (the qml files are in a resource), and I've tried to make it happen asynchronously - I've follo

Re: [Interest] Fwd: [Development] Qt 5 beta

2012-08-30 Thread Till Oliver Knoll
Am 30.08.2012 um 21:59 schrieb Sergio Ahumada : > ... > > the Qt 5 beta has now been released. Hooray! Cheers, Oliver ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Fwd: [Development] Qt 5 beta

2012-08-30 Thread Jason H
No, didn't see it and the link no worky. http://labs.qt.nokia.com/2012/08/30/qt-5-beta-is-here/ FTFY. - Original Message - From: Sergio Ahumada To: interest@qt-project.org Cc: Sent: Thursday, August 30, 2012 3:59 PM Subject: [Interest] Fwd: [Development] Qt 5 beta Hi, I guess you

[Interest] Fwd: [Development] Qt 5 beta

2012-08-30 Thread Sergio Ahumada
Hi, I guess you might have seen this, but just in case ! Cheers, Original Message Subject:[Development] Qt 5 beta Date: Thu, 30 Aug 2012 11:23:07 + From: To: , Hi everybody, the Qt 5 beta has now been released. Please find all the details at http://www

Re: [Interest] Getting the list of mounted network volumes

2012-08-30 Thread Till Oliver Knoll
Am 30.08.2012 um 19:44 schrieb Stephen Chu : > ... > > I guess I will have to do platform specific code for this. On Mac I *think* everything under /Volumes can be considered mounted (not sure about network/NFS mounted drives though). But I'm sure there's a more reliable API to query that. C

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread BRM
> From: Sensei > Subject: Re: [Interest] Reading trees from QSettings > On 8/30/12 4:39pm, BRM wrote: >> I'm saying to do something like: >> >> [Root] >> item\1\name=New File >> item\1\isFile=true >> item\2\name=New Folder >> item\2\isFile=false >> item\size=2 >> >> [New%20Folder] >> it

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread Andreas Pakulat
Hi, On Thu, Aug 30, 2012 at 7:27 PM, Sensei wrote: > On 8/30/12 4:39pm, BRM wrote: >> Are you sure 'sons' and 's.childGroups()' are the same thing? If you >> don't update 'sons' in the loop, then they're not likely the same >> thing. IIRC, 's' is manipulated as you move through the file - thus >>

Re: [Interest] Getting the list of mounted network volumes

2012-08-30 Thread Stephen Chu
On 8/30/12 1:35 PM, Thiago Macieira wrote: > On quinta-feira, 30 de agosto de 2012 13.15.36, Stephen Chu wrote: >> Hi List. >> >> Is there a way to get a list of currently mounted network volumes? Or >> just mounted volumes? > > http://doc.qt.nokia.com/qtmobility/qsystemstorageinfo.html is the clos

Re: [Interest] Getting the list of mounted network volumes

2012-08-30 Thread Marc Ferland
Stephen Chu writes: > Hi List. > > Is there a way to get a list of currently mounted network volumes? Or > just mounted volumes? > > I thought QDir::drives() is it but it returns only the root (/) on Mac > and drive letters on Windows. I am looking to get the names of the > server volumes. > I

Re: [Interest] Getting the list of mounted network volumes

2012-08-30 Thread Thiago Macieira
On quinta-feira, 30 de agosto de 2012 13.15.36, Stephen Chu wrote: > Hi List. > > Is there a way to get a list of currently mounted network volumes? Or > just mounted volumes? http://doc.qt.nokia.com/qtmobility/qsystemstorageinfo.html is the closest thing. Why do you want to know that information

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread Sensei
On 8/30/12 4:39pm, BRM wrote: > I'm saying to do something like: > > [Root] > item\1\name=New File > item\1\isFile=true > item\2\name=New Folder > item\2\isFile=false > item\size=2 > > [New%20Folder] > item\1\name= > item\1\isFile=false > item\size=1 > > No QStringList is required, and it's ver

[Interest] Getting the list of mounted network volumes

2012-08-30 Thread Stephen Chu
Hi List. Is there a way to get a list of currently mounted network volumes? Or just mounted volumes? I thought QDir::drives() is it but it returns only the root (/) on Mac and drive letters on Windows. I am looking to get the names of the server volumes. Thanks. __

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 19:08, "Michael Jackson" : >  Note that you can build the Latest Clang yourself. I *think* you need OS X > 10.7 to do this though. Not sure on that last one. But again, unless you are > building something basically trivial that does NOT rely on the OS X SDK's > then you still need

[Interest] Japanese text input on QTableWidget (Mac OS X)

2012-08-30 Thread Clément Geiger
Hello there, I'm running into a rather weird problem here. My setup : - Mac OS X 10.7.4 - Qt 4.8.1 I develop an application which is available in japanese. In this application, there are several tables, represented by QTableWidget widgets. In order to test it, I switched my keyboard layout to

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Michael Jackson
On Aug 30, 2012, at 11:00 AM, Till Oliver Knoll wrote: > Am 30.08.2012 um 13:09 schrieb Bo Elmgreen : > >> ..., QtCreator cannot find clang++ :-/ And I cannot find it on my system. >> Maybe it is because I still have Xcode 3.2.6 installed!? > > Very much likely ;) My book sais that "LLVM 3.0 /

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Till Oliver Knoll
Am 30.08.2012 um 13:09 schrieb Bo Elmgreen : > ..., QtCreator cannot find clang++ :-/ And I cannot find it on my system. > Maybe it is because I still have Xcode 3.2.6 installed!? Very much likely ;) My book sais that "LLVM 3.0 / Clang" did not become the default until Xcode 4.2 - For Xcode 3.2

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Michael Jackson
Just another data point: Dual quad Core Nehalem Xeon 2.6GHz (Hyper-threaded) running off SATA-II based SSD, OS X 10.6.8 (GCC 4.2 - Apple Version) make -j8 gives a compile time of 3m27s make -j16 gives a compile time of 3m16s --- Mike J On Aug 30, 2012, at 9:09 AM, Bo Elmgreen wrote: > Well, I

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread BRM
> From: Sensei > Subject: Re: [Interest] Reading trees from QSettings > > On 8/30/12 3:37pm, BRM wrote: >> While I don't know if there is a "safe way to [query] for an > existing >> group", I'd suggest that you just give yourself another key as > part >> of the array to identify it as eithe

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread Sensei
On 8/30/12 3:37pm, BRM wrote: > While I don't know if there is a "safe way to [query] for an existing > group", I'd suggest that you just give yourself another key as part > of the array to identify it as either a file or group. I've tried that, and I've found that the problem is in calling QSetti

Re: [Interest] Weird QSettings/QStringList? Was: Reading trees from QSettings

2012-08-30 Thread Sensei
Regarding this problem, I've found a way around. It is a nasty way around, but it works. I've added some warnings, and adding a new variable, a QStringList constructed from the QSettings: QStringList sons = s.childGroups(); In the loop, I check if a group exists, with a call to QSettings

Re: [Interest] Reading trees from QSettings

2012-08-30 Thread BRM
> From: Sensei >Hi again! > >As you remember, I was playing with QTreeWidget items, now I'd like to >write and read the tree (a strict tree) from QSettings. > >I can write the tree easily, for example the following tree has a file, >and a folder; the folder has a file inside. > >[Root] >item\1\

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Bo Elmgreen
Well, I just employed the same trick on my Linux machine, and there I also get roughly a halving of the build time ;-) Cheers, Bo On Thu, Aug 30, 2012 at 2:38 PM, Thiago Macieira wrote: > On quinta-feira, 30 de agosto de 2012 16.34.22, Konstantin Tokarev wrote: > > I guess that all of these fact

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Thiago Macieira
On quinta-feira, 30 de agosto de 2012 16.34.22, Konstantin Tokarev wrote: > I guess that all of these facts apply to building on Linux. As for Mac, I > have a feeling that OS scheduler is somewhat more fair there, and complete > CPU utilization is achieved with lesser threads. My impression is tha

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 16:04, "Thiago Macieira" : > On quinta-feira, 30 de agosto de 2012 15.52.49, Konstantin Tokarev wrote: > >>  1. Compilation is not entirely CPU-bound process. >>  2. OS scheduler is not perfect. > > The best performance ratio I can get on my dual core x dual thread machine is > 375% C

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Thiago Macieira
On quinta-feira, 30 de agosto de 2012 15.52.49, Konstantin Tokarev wrote: > 1. Compilation is not entirely CPU-bound process. > 2. OS scheduler is not perfect. The best performance ratio I can get on my dual core x dual thread machine is 375% CPU utilisation, so a -j4 would be recommended. Howeve

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 15:47, "Bo Elmgreen" : > Hi again, > > Hmmm - using jN+1 does not improve things, but ... why would it? Because: 1. Compilation is not entirely CPU-bound process. 2. OS scheduler is not perfect. YMMV, of course. -- Regards, Konstantin ___

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Bo Elmgreen
Hi again, Hmmm - using jN+1 does not improve things, but ... why would it? Cheers, Bo On Thu, Aug 30, 2012 at 1:32 PM, Bo Elmgreen wrote: > Hi Mike, > > That certainly hit the spot! With that switch the compile time with gcc is > down to 8 minutes. > > Thanks! > Bo > > > On Thu, Aug 30, 2012 a

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Bo Elmgreen
Hi Mike, That certainly hit the spot! With that switch the compile time with gcc is down to 8 minutes. Thanks! Bo On Thu, Aug 30, 2012 at 1:17 PM, Michael Jackson wrote: > In QtCreator it uses "Make" to do the compile and by default it will only > use a single thread Where Xcode would by defaul

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Michael Jackson
On Aug 30, 2012, at 7:20 AM, Konstantin Tokarev wrote: > 30.08.2012, 15:17, "Michael Jackson" : >> In QtCreator it uses "Make" to do the compile and by default it will only >> use a single thread Where Xcode would by default use all your cores to >> compile. You need to add a "-jN" to the "make

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 15:09, "Bo Elmgreen" : > but what if gcc actually was just as fast as clang? ;-) Impossible. Even latest releases of gcc are significantly slower, and Apple shipped gcc 4.2 -- Regards, Konstantin ___ Interest mailing list Interest@qt-proj

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 15:17, "Michael Jackson" : > In QtCreator it uses "Make" to do the compile and by default it will only use > a single thread Where Xcode would by default use all your cores to compile. > You need to add a "-jN" to the "make argument" in the "Project" tab of > QtCreator. Where "N" i

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Michael Jackson
In QtCreator it uses "Make" to do the compile and by default it will only use a single thread Where Xcode would by default use all your cores to compile. You need to add a "-jN" to the "make argument" in the "Project" tab of QtCreator. Where "N" is the number of cores on your computer. That will

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Bo Elmgreen
Hi! Thanks for the suggestions. Yes, it is true that I might be comparing apples to pears :-) but what if gcc actually was just as fast as clang? ;-) Anyway, I am now trying to set up clang in QtCreator. Since 4.8.0 (I think) there are mkspecs for clang - although unsupported - but when compiling,

[Interest] Reading trees from QSettings

2012-08-30 Thread Sensei
Hi again! As you remember, I was playing with QTreeWidget items, now I'd like to write and read the tree (a strict tree) from QSettings. I can write the tree easily, for example the following tree has a file, and a folder; the folder has a file inside. [Root] item\1\name=New File item\2\name=N

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 14:37, "Till Oliver Knoll" : > Am 30.08.2012 um 11:47 schrieb Bo Elmgreen : > >>  ...(gcc in QtCreator and clang in Xcode) > > Here you go, you answered your own question! :) > > You were not comparing Qt Creator vs Xcode, but rather gcc vs clang! > >>  ... are there tricks we can use

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Till Oliver Knoll
Am 30.08.2012 um 11:47 schrieb Bo Elmgreen : > ...(gcc in QtCreator and clang in Xcode) Here you go, you answered your own question! :) You were not comparing Qt Creator vs Xcode, but rather gcc vs clang! > ... are there tricks we can use to speed up the compiling? Usually the environment va

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-30 Thread Konrad Rosenbaum
Hi, On Wednesday 29 August 2012 16:24:44 chuck.pier...@nokia.com wrote: > Is there an interest on this list in learning about the business > implications of going LGPL using the Trolltech example? Yes, I think this would be very helpful to quite a few of us. License discussions happen quite ofte

Re: [Interest] Slow compiling on Mac

2012-08-30 Thread Konstantin Tokarev
30.08.2012, 13:47, "Bo Elmgreen" : > Hi all, > > We are developing a desktop application, that we target for several > platforms, including MacOS. Previously, we have been building our application > for MacOS using Xcode, but I would like to switch to QtCreator. The switch to > the new IDE was

[Interest] Slow compiling on Mac

2012-08-30 Thread Bo Elmgreen
Hi all, We are developing a desktop application, that we target for several platforms, including MacOS. Previously, we have been building our application for MacOS using Xcode, but I would like to switch to QtCreator. The switch to the new IDE was relatively painless, but I have noticed that compi

[Interest] QtQuick3D for 3D Ui and animations

2012-08-30 Thread Ramakanthreddy_Kesireddy
Hi, As our project is focusing on development of 3D UI and animations on car infotainment systems, could you please let me know if we need to use Nvidia UI composer http://www.nvidia.com/object/uicomposer_home.html apart from QtQuick3D for 3D ui development and animations? Please let me know i

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-30 Thread Calogero Mauceri
That would be really interesting to know. Il 29/08/2012 19.41, Mike Short ha scritto: I would be interested in learning about this as well. The effects of the different licensing models fascinates me, and having a knowledge about what the numbers looked like over time, based on the differe