Re: [Qt-creator] Connecting signals from child thread with slots in main thread

2009-12-07 Thread Eike Ziller

On Dec 6, 2009, at 12:48 PM, ext Soumen banerjee wrote:

> In the files attached, mainwindow.cpp has the following line
> 
> connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
> 
> where ptr is of type mythread* which is derived from QThread
> the application compiles without error but on running, quits with
> segfault. Omitting the connect line solves the problem but removes all
> the functionality. How do you connect these together?
> Regards
> Soumen

You don't give "ptr" a value before calling "connect". Moving "ptr=new 
mythread(this);" before the "connect" statement (or something similar) should 
do it for you.

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Phone  +49 (0)30 6392 3255
Fax+49 (0)30 6392 3256
E-mail eike.zil...@nokia.com






___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Creator forcing nmake version

2009-12-07 Thread Daniel Teske
On Saturday 05 December 2009 00:11:45 ext Hari Sundar wrote:
> Hi,
> 
> When I use cmake (from the cmd line or the GUI) to produce nmake
> files, it produces it based on the version I have specified as the
> default version. However, it forces it to VC 9 if I invoke it within
> Creator. This might also be due to the fact that I used VC9 to compile
> Qt.

Well I think you are the first to try the cmake plugin with multiple visual 
studio installations. Note that the VS support for cmake is new in this 1.3  
There might be a few bugs with multiple vs installations.

 > How do I specify the VC version to use while generating NMakefiles ?
The intended way is to start Creator from a shell without a preset VS and then 
then the wizard which asks you to create the .cbp file should ask you which VS 
version it should use. 

I've fixed a few things which looked wrong in those code paths recently, but 
that's only for master.

daniel
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Could not find mkspecs for your QMAKESPEC ?

2009-12-07 Thread Ed Sutton
When I run qmake in a specific project, I get this:

Running build steps for project diagnosticsgui...
Starting: /opt/qtsdk-2009.05/qt/bin/qmake 
/home/esutton/projects/LRADDS_BnS/proprietary/diagnosticsgui/diagnosticsgui.pro 
-r CONFIG+=debug -spec ../../../../qtsdk-2009.05/qt/mkspecs/linux-g++ 
Could not find mkspecs for your 
QMAKESPEC(../../../../qtsdk-2009.05/qt/mkspecs/linux-g++) after trying:
/opt/qtsdk-2009.05/qt/mkspecs
Error processing project file: 
/home/esutton/projects/LRADDS_BnS/proprietary/diagnosticsgui/diagnosticsgui.pro
Exited with code 3.
Error while building project diagnosticsgui
When executing build step 'QMake'

This is a clean development machine I just setup.  I pointed Qt to the qmake to 
use.  Other projects work fine. 

Where should I focus?

Thanks in advance,

-Ed



___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Could not find mkspecs for your QMAKESPEC ?

2009-12-07 Thread Ed Sutton

Never mind.  I compared the bad to the working Qt project and set Qmake Build 
Steps project settings to the same as the working one.  Sorry, I should have 
thought about this.

-Ed

On Dec 7, 2009, at 9:00 AM, Ed Sutton wrote:

> When I run qmake in a specific project, I get this:
> 
> Running build steps for project diagnosticsgui...
> Starting: /opt/qtsdk-2009.05/qt/bin/qmake 
> /home/esutton/projects/LRADDS_BnS/proprietary/diagnosticsgui/diagnosticsgui.pro
>  -r CONFIG+=debug -spec ../../../../qtsdk-2009.05/qt/mkspecs/linux-g++ 
> Could not find mkspecs for your 
> QMAKESPEC(../../../../qtsdk-2009.05/qt/mkspecs/linux-g++) after trying:
> /opt/qtsdk-2009.05/qt/mkspecs
> Error processing project file: 
> /home/esutton/projects/LRADDS_BnS/proprietary/diagnosticsgui/diagnosticsgui.pro
> Exited with code 3.
> Error while building project diagnosticsgui
> When executing build step 'QMake'
> 
> This is a clean development machine I just setup.  I pointed Qt to the qmake 
> to use.  Other projects work fine. 
> 
> Where should I focus?
> 
> Thanks in advance,
> 
> -Ed
> 
> 
> 
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator