[Interest] Qt3D and Multithreading

2013-03-19 Thread Federico J . Fernández
All, We are developing a Qt3D application that uses many threads for geometry generation. We have some questions regarding the thread-safety of the library: - Is it possible to use more than one QBuilder and call finalizedSceneNode() from different threads (at the same time)? - Do we need to spe

Re: [Interest] QThread and sleep

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 15.15.31, Hugo Drumond Jacob wrote: > 2013/3/19 Thiago Macieira : > > On terça-feira, 19 de março de 2013 14.56.47, Hugo Drumond Jacob wrote: > >> No problem! In fact, we are using! It's just a question about > >> QThread::wait and QThread::sleep: "It's safe use

[Interest] Unable to capture audio with QAudioInput

2013-03-19 Thread pritam.ghang...@gmail.com
Hi I was trying to capture audio using QAudioInput. But I get nothing in the output buffer. Please see the attached code. I try to send it to google for text recognition after recording but buffer itself is empty. Platform: Ubuntu Linux 32bit 12.10 with Qt5.0 -- Regards, pritam #include #inclu

Re: [Interest] QThread and sleep

2013-03-19 Thread Hugo Drumond Jacob
2013/3/19 Thiago Macieira : > On terça-feira, 19 de março de 2013 14.56.47, Hugo Drumond Jacob wrote: >> No problem! In fact, we are using! It's just a question about >> QThread::wait and QThread::sleep: "It's safe use QThread::wait in >> other situation that not synchronously QThread::terminate ?

Re: [Interest] scale all fonts

2013-03-19 Thread Till Oliver Knoll
Am 19.03.2013 um 14:19 schrieb Hamish Moffatt : > On 19/03/2013 10:55 PM, Rutledge Shawn wrote: >> On 19 Mar 2013, at 11:27 AM, Hamish Moffatt wrote: >> >>> Is it possible to apply a scaling to all font sizes used in an application? >>> >>> I can see Qt is doing the right thing by converting p

Re: [Interest] QThread and sleep

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 14.56.47, Hugo Drumond Jacob wrote: > No problem! In fact, we are using! It's just a question about > QThread::wait and QThread::sleep: "It's safe use QThread::wait in > other situation that not synchronously QThread::terminate ?" and you > already answered: yes

Re: [Interest] QThread and sleep

2013-03-19 Thread Hugo Drumond Jacob
2013/3/19 Thiago Macieira : > On terça-feira, 19 de março de 2013 14.14.20, Hugo Drumond Jacob wrote: >> > Yes: don't sleep. >> >> In fact, we have a class inherited of QThread that can change the >> default scheduler of thread to use Linux SCHED_FIFO and really change >> the thread priority. We ar

Re: [Interest] QThread and sleep

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 14.14.20, Hugo Drumond Jacob wrote: > > Yes: don't sleep. > > In fact, we have a class inherited of QThread that can change the > default scheduler of thread to use Linux SCHED_FIFO and really change > the thread priority. We are using that way because we need to

Re: [Interest] QThread and sleep

2013-03-19 Thread Hugo Drumond Jacob
Thanks Thiago! 2013/3/19 Thiago Macieira : > On terça-feira, 19 de março de 2013 10.37.56, Hugo Drumond Jacob wrote: >> Hi folks! >> >> Today some doubt has ocurred on my office. Suppose that for some >> reason we need to sleep a thread (not the main thread) for some time > > Suppose that you're w

Re: [Interest] QThread and sleep

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 10.37.56, Hugo Drumond Jacob wrote: > Hi folks! > > Today some doubt has ocurred on my office. Suppose that for some > reason we need to sleep a thread (not the main thread) for some time Suppose that you're wrong and you came to the wrong solution that sleeping

Re: [Interest] gstreamer is not enabled in Qt5

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 12.03.48, Ramakanthreddy_Kesireddy wrote: > I couldnot find gstreamer 0.10.38..So I installed 0.10.36 as gstreamer > should be <1.0 but still getting the same error as mentioned below. > > Any pointers to enable gstreamer in configure verbose output? You've alre

Re: [Interest] QGridLayout does not update

2013-03-19 Thread Etienne Sandré-Chardonnal
Ah, I think I got an idea from the docs. Apparently, one cannot modify the layout of a widget after it has been set as a QScrollArea content. Damned... this prevents me from dynamically changing the content of the dock without recreating everything at each update Etienne void QScrollArea::setWidg

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread Thiago Macieira
On terça-feira, 19 de março de 2013 09.57.57, K. Frank wrote: > But seriously, does anyone know what the motivation for making sleep > protected might have been? It was meant to be used only in the run() method. And as Frank H. replied, it prevents people from trying to put another thread to sleep

Re: [Interest] QGridLayout does not update

2013-03-19 Thread Etienne Sandré-Chardonnal
Tried, with no success. Surprisingly, if I directly set my QWidget as the QDockWidget content, it works. But if I put a QScrollArea as the QDockWidget content, and my QWidget as QScrollArea content, it does not work. Something is wrong with the QScrollArea Etienne 2013/3/19 preeteesh kakkar >

[Interest] Subject: QThread and sleep

2013-03-19 Thread Etienne Sandré-Chardonnal
Hi, Do you want to force the thread to sleep (ie pause its execution for some time) from the main thread? I do not think there is a generic solution, you cannot force a thread to pause. But: - If the thread uses an event loop, you can have a QObject that you create and move to this thread using

Re: [Interest] QGridLayout does not update

2013-03-19 Thread preeteesh kakkar
Try calling gridlayout->update() and see if that helps? On Tue, Mar 19, 2013 at 9:28 AM, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote: > Dear all, > > I am encountering the following issue using QGridLayout in a widget. > > The QGridLayout is currently used for displaying labels alon

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hi Frank! On Tue, Mar 19, 2013 at 10:24 AM, Frank Hemer wrote: On Tuesday 19 March 2013 15:11:03 André Somers wrote: >> Op 19-3-2013 14:57, K. Frank schreef: >> > ... >> > A cross-platform sleep (in a cross-platform framework, at that). What's >> > not to like? >> > >> > But seriously, does any

[Interest] QGridLayout does not update

2013-03-19 Thread Etienne Sandré-Chardonnal
Dear all, I am encountering the following issue using QGridLayout in a widget. The QGridLayout is currently used for displaying labels along a grid with two columns, in a subclassed QWidget. This QWidget was set as the widget of a QSCrollArea, the QScrollArea is the content of a QDockWidget. 1)

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread Frank Hemer
On Tuesday 19 March 2013 15:11:03 André Somers wrote: > Op 19-3-2013 14:57, K. Frank schreef: > > Hello Tony! > > > > I have something of a side question, below. > > > > On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: > >> Hi Ken, > >> ... > >> // Hack to get around Qt strictness... > >>

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hi André! On Tue, Mar 19, 2013 at 10:11 AM, André Somers wrote: > Op 19-3-2013 14:57, K. Frank schreef: >> Hello Tony! >> >> I have something of a side question, below. >> ... >> A cross-platform sleep (in a cross-platform framework, at that). What's >> not to like? >> >> But seriously, does any

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread André Somers
Op 19-3-2013 14:57, K. Frank schreef: > Hello Tony! > > I have something of a side question, below. > > On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: >> Hi Ken, >> ... >> // Hack to get around Qt strictness... >> >> class TSleepThread: public QThread >> { >> public: >>static void sl

Re: [Interest] how to block run function of QRunnable class

2013-03-19 Thread K. Frank
Hello Tony! I have something of a side question, below. On Tue, Mar 19, 2013 at 2:09 AM, Tony Rietwyk wrote: > Hi Ken, > ... > // Hack to get around Qt strictness... > > class TSleepThread: public QThread > { > public: > static void sleep(unsigned long secs) { QThread::sleep(secs); }; >

[Interest] QThread and sleep

2013-03-19 Thread Hugo Drumond Jacob
Hi folks! Today some doubt has ocurred on my office. Suppose that for some reason we need to sleep a thread (not the main thread) for some time (eg. 100 ms). The QThread::wait(int) "provides similar functionality to the POSIX pthread_join()" and this don't will sleep the target thread, but the cal

Re: [Interest] Qt5 Visual Studio Add-In 1.2.1 RC

2013-03-19 Thread Duane
On 3/19/2013 5:38 AM, Haataja Ismo wrote: > Hi, > > Release candidate of Qt5 Visual Studio Add-In 1.2.1 in now available for > download here. > > http://origin.releases.qt-project.org/digia_vsaddin/ > > Change list of modifications available here > http://qt.gitorious.org/qt-labs/vstools/blobs/mast

Re: [Interest] scale all fonts

2013-03-19 Thread Hamish Moffatt
On 19/03/2013 10:55 PM, Rutledge Shawn wrote: > On 19 Mar 2013, at 11:27 AM, Hamish Moffatt wrote: > >> Is it possible to apply a scaling to all font sizes used in an application? >> >> I can see Qt is doing the right thing by converting point sizes to pixel >> sizes in accordance with the DPI of t

Re: [Interest] qt3D and qt5 status

2013-03-19 Thread BOUCARD Olivier
I have missed that too. Sounds great to me. Olivier. > > De : Sean Harmer >À : interest@qt-project.org >Envoyé le : Mardi 19 mars 2013 13h24 >Objet : Re: [Interest] qt3D and qt5 status > >On Tuesday 19 March 2013 09:20:02 BOUCARD Olivier wrote: >> The last co

Re: [Interest] qt3D and qt5 status

2013-03-19 Thread Sean Harmer
On Tuesday 19 March 2013 09:20:02 BOUCARD Olivier wrote: > The last commit from the repository says: "5.2 is the expected release > version, so set it already." > > We have to be a little more patient. ;-) Apologies I've only just spotted this thread. This was discussed on the development@ list

Re: [Interest] gstreamer is not enabled in Qt5

2013-03-19 Thread Ramakanthreddy_Kesireddy
I couldnot find gstreamer 0.10.38..So I installed 0.10.36 as gstreamer should be <1.0 but still getting the same error as mentioned below. Any pointers to enable gstreamer in configure verbose output? Br, Ramakanth From: interest-bounces+ramakanthreddy_k

Re: [Interest] scale all fonts

2013-03-19 Thread Rutledge Shawn
On 19 Mar 2013, at 11:27 AM, Hamish Moffatt wrote: > Is it possible to apply a scaling to all font sizes used in an application? > > I can see Qt is doing the right thing by converting point sizes to pixel > sizes in accordance with the DPI of the display. Now suppose I want to > override the

Re: [Interest] scale all fonts

2013-03-19 Thread Manuele Conti
Il 19/03/2013 11:27, Hamish Moffatt ha scritto: Is it possible to apply a scaling to all font sizes used in an application? I can see Qt is doing the right thing by converting point sizes to pixel sizes in accordance with the DPI of the display. Now suppose I want to override the DPI, or redefin

Re: [Interest] scale all fonts

2013-03-19 Thread Bo Thorsen
Den 19-03-2013 11:27, Hamish Moffatt skrev: > Is it possible to apply a scaling to all font sizes used in an application? > > I can see Qt is doing the right thing by converting point sizes to pixel > sizes in accordance with the DPI of the display. Now suppose I want to > override the DPI, or rede

Re: [Interest] opengl graphics system status in 4.8.x?

2013-03-19 Thread Samuel Rødal
On 03/18/2013 09:07 PM, Simon St James wrote: > Hi all, > > I am currently working on emscripten-qt > (http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki/Demos/), > a project that uses Emscripten > (https://github.com/kripken/emscripten/wiki) to compile Qt 4.8.x to Javascri

[Interest] scale all fonts

2013-03-19 Thread Hamish Moffatt
Is it possible to apply a scaling to all font sizes used in an application? I can see Qt is doing the right thing by converting point sizes to pixel sizes in accordance with the DPI of the display. Now suppose I want to override the DPI, or redefine point to be other than 1/72" (achieves the sa

[Interest] Qt5 Visual Studio Add-In 1.2.1 RC

2013-03-19 Thread Haataja Ismo
Hi, Release candidate of Qt5 Visual Studio Add-In 1.2.1 in now available for download here. http://origin.releases.qt-project.org/digia_vsaddin/ Change list of modifications available here http://qt.gitorious.org/qt-labs/vstools/blobs/master/Qt4VS2003/Qt4VSAddin/Changes-1.2.1 Final version is

Re: [Interest] qt3D and qt5 status

2013-03-19 Thread BOUCARD Olivier
The last commit from the repository says: "5.2 is the expected release version, so set it already." We have to be a little more patient. ;-) Olivier Boucard. > > De : Alejandro Exojo >À : Interest@qt-project.org >Envoyé le : Mardi 19 mars 2013 9h30 >Objet : R

Re: [Interest] qt3D and qt5 status

2013-03-19 Thread Alejandro Exojo
2013/3/10 qtnext : > I wants to port an existing apps from Qt4 to Qt5. I suppose that all is > easily portable, but I use qt3D c++ scenegraph to render my opengl stuff. It > seems that qt3D is not included in qt5 trunk, but has anybody tryed to > compile qt3D C++ with qt5 ? Does it works for basic

Re: [Interest] opengl graphics system status in 4.8.x?

2013-03-19 Thread Till Oliver Knoll
Am 19.03.2013 um 08:01 schrieb Simon St James : >> ... >> The experiment itself was a success, since it concluded that we should do >> something entirely different for performance using OpenGL. That's the Qt 5 / >> Qt Quick 2 scene graph. > > Sounds pretty decisive, then :) Thanks for the infor

Re: [Interest] opengl graphics system status in 4.8.x?

2013-03-19 Thread Simon St James
Hi Thiago, On Monday 18 Mar 2013 15:55:25 Thiago Macieira wrote: > On segunda-feira, 18 de março de 2013 20.07.34, Simon St James wrote: > > Currently, performance is surprisingly good considering we are still using > > the "raster" graphics system where everything is plotted pixel by pixel by > >