Re: [Qt-creator] printf() with Qt Creator?

2010-04-13 Thread Sunil Thaha
This should help you - http://sector.ynet.sk/qt4-tutorial/debugging.html,
http://doc.trolltech.com/4.6/debug.html

BTW: This mailinglist is specific to Qt-Creator issues. You might want to
post questions related to Qt in qt-interest mailinglist.

Regards,
Sunil


On Wed, Apr 14, 2010 at 7:00 AM, nobodyhere wrote:

> I googled for "stdout" rather than "printf", and I came across a special Qt
> method, qDebug(), and it works:
>
> #include 
> qDebug("qDebug, printf style, %i\n", 5);
> qDebug() << "qDebug cout style, " << 5;
>
> I'm not sure about this whole thing about using Qt's version of STL...  But
> I think for this new app I'm making with Qt Designer, I probably will.
>
> - Original Message -
> From: "nobodyhere" 
> To: qt-creator@trolltech.com
> Sent: Tuesday, April 13, 2010 3:21:45 PM GMT -06:00 US/Canada Central
> Subject: printf() with Qt Creator?
>
> I created a new Qt4 Gui Application, and did a printf().  The printf()
> works (ie, goes to the Application Output) when I run via "Start Debugging
> F5".  However, it doesn't print when I run via "Run, Ctrl+R".  :-(
> ___
> 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


Re: [Qt-creator] printf() with Qt Creator?

2010-04-13 Thread nobodyhere
I googled for "stdout" rather than "printf", and I came across a special Qt 
method, qDebug(), and it works:

#include 
qDebug("qDebug, printf style, %i\n", 5);
qDebug() << "qDebug cout style, " << 5;

I'm not sure about this whole thing about using Qt's version of STL...  But I 
think for this new app I'm making with Qt Designer, I probably will.

- Original Message -
From: "nobodyhere" 
To: qt-creator@trolltech.com
Sent: Tuesday, April 13, 2010 3:21:45 PM GMT -06:00 US/Canada Central
Subject: printf() with Qt Creator?

I created a new Qt4 Gui Application, and did a printf().  The printf() works 
(ie, goes to the Application Output) when I run via "Start Debugging F5".  
However, it doesn't print when I run via "Run, Ctrl+R".  :-(
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Calling c++ procedure in Qt

2010-04-13 Thread Robin Krahl
Hi!

Am Tue, 13 Apr 2010 16:38:37 -0500 schrieb Anu Ramachandra:
> I already have the connect/slot statement. I am trying to call the c++
> function from the middle of the slot procedure for the fileDialog.

I don’t get the problem. You’ve got your fileDialog. You’ve got youre
slot function. You connected the fileDialog’s signal and your slot. And
now you want to call another function from the slot function? – Just
call it! Unfortunately, I don’t see the problem …

Maybe you could paste [1] few lines of your code explaining the problem?
Or maybe someone else understands it and I’m just having a “black out”
or something like that. ;)

Regards,
Robin

[1] http://pastebin.com
-- 
Robin Krahl 
http://rkrahl.de

plain text & open source ftw!
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Calling c++ procedure in Qt

2010-04-13 Thread Anu Ramachandra
Hi Robin,

Thanks for the response.

I already have the connect/slot statement. I am trying to call the c++
function from the middle of the slot procedure for the fileDialog.

I will check with the qt-interest mailing list.

-Anu


-Original Message-
From: qt-creator-boun...@trolltech.com
[mailto:qt-creator-boun...@trolltech.com] On Behalf Of Robin Krahl
Sent: Tuesday, April 13, 2010 4:09 PM
To: qt-creator@trolltech.com
Subject: Re: [Qt-creator] Calling c++ procedure in Qt

Hi Anu!

On 13.04.2010 22:54, Anu Ramachandra wrote:
> I have a Qt application with a fileDialog. When a file is selected, I 
> would like to call a c++ procedure.
> 
> The procedure is defined in a separate .cpp file which I added to the 
> 'Sources' section of the Qt project.
> 
> How can the C++ procedure be called?

That's done via signals and slots, a central Qt feature. [1] This is
very basic Qt; so I'd recommend you to read the tutorials,
documentation, help, examples, demonstrations and so on provided with Qt
and Qt Creator - they're really great! You could e. g. start with the
Adressbook Tutorial [2]. Basically, the code would look like this:

  connect(fileDialog, SIGNAL(fileSelected(QString)),
  this, SLOT(slotFileSelected(QString)));

Furthermore, this is the Qt Creator mailing list - for general questions
on Qt (like this one), please use qt-interest. Thanks!

I hope this helps you.

Regards,
Robin

[1] http://doc.trolltech.com/4.6/signalsandslots.html
[2] http://doc.trolltech.com/4.6/tutorials-addressbook.html
--
Robin Krahl 
http://rkrahl.de

plain text & open source ftw!




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


Re: [Qt-creator] Calling c++ procedure in Qt

2010-04-13 Thread Robin Krahl
Hi Anu!

On 13.04.2010 22:54, Anu Ramachandra wrote:
> I have a Qt application with a fileDialog. When a file is selected, I
> would like to call a c++ procedure.
> 
> The procedure is defined in a separate .cpp file which I added to the
> 'Sources' section of the Qt project.
> 
> How can the C++ procedure be called?

That’s done via signals and slots, a central Qt feature. [1] This is
very basic Qt; so I’d recommend you to read the tutorials,
documentation, help, examples, demonstrations and so on provided with Qt
and Qt Creator – they’re really great! You could e. g. start with the
Adressbook Tutorial [2]. Basically, the code would look like this:

  connect(fileDialog, SIGNAL(fileSelected(QString)),
  this, SLOT(slotFileSelected(QString)));

Furthermore, this is the Qt Creator mailing list – for general questions
on Qt (like this one), please use qt-interest. Thanks!

I hope this helps you.

Regards,
Robin

[1] http://doc.trolltech.com/4.6/signalsandslots.html
[2] http://doc.trolltech.com/4.6/tutorials-addressbook.html
-- 
Robin Krahl 
http://rkrahl.de

plain text & open source ftw!





signature.asc
Description: OpenPGP digital signature
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Calling c++ procedure in Qt

2010-04-13 Thread Anu Ramachandra
Hello,

 

I am new to Qt creator.

I have a Qt application with a fileDialog. When a file is selected, I
would like to call a c++ procedure.

The procedure is defined in a separate .cpp file which I added to the
'Sources' section of the Qt project.

How can the C++ procedure be called?

 

Thanks!

AnuR

 

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


[Qt-creator] printf() with Qt Creator?

2010-04-13 Thread nobodyhere
I created a new Qt4 Gui Application, and did a printf().  The printf() works 
(ie, goes to the Application Output) when I run via "Start Debugging F5".  
However, it doesn't print when I run via "Run, Ctrl+R".  :-(
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Creator 2.0 QMLViewer issue

2010-04-13 Thread Jack Wootton
But not in the binary or source downloads of the technology preview offered
here: http://qt.nokia.com/developer/qt-qtcreator-prerelease#download

I guess I should use GIT to get the very latest version rather than 4.7.0?

Thanks,
Jack

On Tue, Apr 13, 2010 at 4:47 PM, Daniel Teske wrote:

> On Tuesday 13 April 2010 17:16:29 ext Jack Wootton wrote:
> > Hi all,
> >
> > I’m using Qt Creator 2 and Qt 4.7, both built from source. Currently I
> >  experience a problem where the QML editor is very sluggish and slow. The
> >  problem occurs when the QML viewer is launched, aplication is run and
> then
> >  closed. The whole IDE lags a lot and becomes unusable for about 30-40
> >  seconds, after which everything is ok. This happens every time the QML
> >  viewer is launched in QtCreator. I’m using Win XP 32-bit SP2, Intel
> >  Core2Duo 2.53Ghz, 3GB RAM.
> >
> > I posted the issue on a Qt Blog, where I found someone else posted the
> same
> >  problem, under the name Bruno.  Is anyone else aware of this problem?
> >  Note: I don't expect an alpha release to work, I'm only trying to find
> >  some comments or suggestions from anyone else who may have experienced
> the
> >  issue.
> That issue is fixed.
>
> daniel
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>



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


[Qt-creator] Debugging as super-user

2010-04-13 Thread Bryce Schober
Is there a way to get Qt Creator to launch gdb as super-user? Obviously, I
can start Qt Creator as super-user, but that leaves all the modified source
and outputs with superuser perms, which screws up normal-user operations
like svn, etc. I tried several different ways of wrapping gdb, and
specifying the wrapper in Qt creator's gdb settings, but have had no
success.

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


Re: [Qt-creator] Creator 2.0 QMLViewer issue

2010-04-13 Thread Daniel Teske
On Tuesday 13 April 2010 17:16:29 ext Jack Wootton wrote:
> Hi all,
> 
> I’m using Qt Creator 2 and Qt 4.7, both built from source. Currently I
>  experience a problem where the QML editor is very sluggish and slow. The
>  problem occurs when the QML viewer is launched, aplication is run and then
>  closed. The whole IDE lags a lot and becomes unusable for about 30-40
>  seconds, after which everything is ok. This happens every time the QML
>  viewer is launched in QtCreator. I’m using Win XP 32-bit SP2, Intel
>  Core2Duo 2.53Ghz, 3GB RAM.
> 
> I posted the issue on a Qt Blog, where I found someone else posted the same
>  problem, under the name Bruno.  Is anyone else aware of this problem? 
>  Note: I don't expect an alpha release to work, I'm only trying to find
>  some comments or suggestions from anyone else who may have experienced the
>  issue.
That issue is fixed.

daniel

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


[Qt-creator] Creator 2.0 QMLViewer issue

2010-04-13 Thread Jack Wootton
Hi all,

I’m using Qt Creator 2 and Qt 4.7, both built from source. Currently I
experience a problem where the QML editor is very sluggish and slow. The
problem occurs when the QML viewer is launched, aplication is run and then
closed. The whole IDE lags a lot and becomes unusable for about 30-40
seconds, after which everything is ok. This happens every time the QML
viewer is launched in QtCreator. I’m using Win XP 32-bit SP2, Intel Core2Duo
2.53Ghz, 3GB RAM.

I posted the issue on a Qt Blog, where I found someone else posted the same
problem, under the name Bruno.  Is anyone else aware of this problem?  Note:
I don't expect an alpha release to work, I'm only trying to find some
comments or suggestions from anyone else who may have experienced the issue.


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


Re: [Qt-creator] Windows snapshot?

2010-04-13 Thread Stephen Chu
The current snapshots seem to be built from 2.0.0-beta branch. A lot of 
commits that are master only haven't showed up. So I can't test most of 
the recent fixes to bugs I reported.

Any chance the snapshots will switch to master soon?

Thanks.

On 4/7/10 3:33 PM, daniel.molken...@nokia.com wrote:
> The latest windows build for today is is 
> ftp://ftp.qt.nokia.com/qtcreator/snapshots/latest/qt-creator-win-opensource-1.3.83-201004071829-setup.exe.
>  next one will be created in about 5 hours.
>
> Cheers,
>Daniel
> --
> Daniel Molkentin, Software Engineer,
> Nokia, Qt Development Frameworks
> website: http://qt.nokia.com
> Rudower Chaussee 13, DE-12489 Berlin
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> 
> From: qt-creator-boun...@trolltech.com [qt-creator-boun...@trolltech.com] On 
> Behalf Of ext Stephen Chu [step...@ju-ju.com]
> Sent: Wednesday, April 07, 2010 3:59 PM
> To: qt-creator@trolltech.com
> Subject: Re: [Qt-creator] Windows snapshot?
>
> On 4/7/10 8:03 AM, Daniel Molkentin wrote:
>> The build script failed for windows due to a subtle change made before
>> the easter holidays. My apologies. The nightly build process is up and
>> running again and a snapshot has been created for today.
>>
> Great to know it's working again. I don't see it on the FTP site. Maybe
> we will see it tomorrow?
>
> --
> Stephen Chu
> 
> 
> ___
> 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


-- 
Stephen Chu


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


[Qt-creator] result of search

2010-04-13 Thread a b
Hello,

Great work lately, the latest release is fine.
The refactoring for example
I'd like to change the color of the search result, it change the occurrence
in the files but not in the result.
By the way i think it is very convenient to have some search implemented to
the result of a first-step search. This may be not very difficult but so
useful.

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


Re: [Qt-creator] Newbie Question in running HTTP Sample Application in Symbian Mobile

2010-04-13 Thread Jefferson Bandeira
Hi Thomas.
I Think Tobias meant this list
http://lists.trolltech.com/mailman/listinfo/qt-interest
That's the one to talk about the Qt framework itself, this one is for Qt
Creator only ( Qt Creator is the IDE that makes working with Qt easier =p )

2010/4/13 Thomas Tsang 

> Hi,
>
> Sorry, would you let me know how to use the Qt mailing lists service?
>
>  I have already registered in
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> Regards,
> Thomas
>
>
> - Original Message -
> From: "Tobias Hunger" 
> To: 
> Sent: Tuesday, April 13, 2010 4:49 PM
> Subject: Re: [Qt-creator] Newbie Question in running HTTP Sample
> Application
> in Symbian Mobile
>
>
> > On 13.04.2010 09:03, ext Thomas Tsang wrote:
> >> I am just a newbie in Qt, when I open the examples under
> >> Qt4.6.2\Examples\Webkit, build them with S60_5th_Edition_SDK_v1.0,
> >> create the SIS package and install it to my mobile (S60 5th Edition). I
> >> can open the application in the mobile but the internet connection
> >> feature is not work.
> >> But there is not problem if I run it in my PC (with normal build).
> >> Anyone can give me some advise?
> >> Regards,
> >> Thomas
> >
> > Hi Thomas!
> >
> > Please use the Qt mailing lists for Qt related questions.
> >
> > Symbian each application comes with a list of capabilities that are used
> > to restrict what a application may or may not do on the phone. Internet
> > access is one of those. So my guess is that your application is lacking
> > the required capability.
> >
> > See
> >
> >
> http://www.forum.nokia.com/Technology_Topics/Device_Platforms/S60/Platform_Security/Capability_Descriptions.xhtml
> >
> > for a list of capabilites and what they are required for.
> >
> > Best Regards,
> > Tobias
> >
> > --
> > Tobias Hunger
> > Software Engineer
> > Nokia, Qt Development Frameworks
> >
> > Nokia gate5 GmbH
> > Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> > Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> > Umsatzsteueridentifikationsnummer: DE 812 845 193
> > Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> > ___
> > 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
>



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


Re: [Qt-creator] Newbie Question in running HTTP Sample Application in Symbian Mobile

2010-04-13 Thread Thomas Tsang
Hi,

Sorry, would you let me know how to use the Qt mailing lists service?

 I have already registered in 
http://lists.trolltech.com/mailman/listinfo/qt-creator

Regards,
Thomas


- Original Message - 
From: "Tobias Hunger" 
To: 
Sent: Tuesday, April 13, 2010 4:49 PM
Subject: Re: [Qt-creator] Newbie Question in running HTTP Sample Application 
in Symbian Mobile


> On 13.04.2010 09:03, ext Thomas Tsang wrote:
>> I am just a newbie in Qt, when I open the examples under
>> Qt4.6.2\Examples\Webkit, build them with S60_5th_Edition_SDK_v1.0,
>> create the SIS package and install it to my mobile (S60 5th Edition). I
>> can open the application in the mobile but the internet connection
>> feature is not work.
>> But there is not problem if I run it in my PC (with normal build).
>> Anyone can give me some advise?
>> Regards,
>> Thomas
>
> Hi Thomas!
>
> Please use the Qt mailing lists for Qt related questions.
>
> Symbian each application comes with a list of capabilities that are used
> to restrict what a application may or may not do on the phone. Internet
> access is one of those. So my guess is that your application is lacking
> the required capability.
>
> See
>
> http://www.forum.nokia.com/Technology_Topics/Device_Platforms/S60/Platform_Security/Capability_Descriptions.xhtml
>
> for a list of capabilites and what they are required for.
>
> Best Regards,
> Tobias
>
> -- 
> Tobias Hunger
> Software Engineer
> Nokia, Qt Development Frameworks
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> ___
> 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


Re: [Qt-creator] Newbie Question in running HTTP Sample Application in Symbian Mobile

2010-04-13 Thread Tobias Hunger
On 13.04.2010 09:03, ext Thomas Tsang wrote:
> I am just a newbie in Qt, when I open the examples under 
> Qt4.6.2\Examples\Webkit, build them with S60_5th_Edition_SDK_v1.0, 
> create the SIS package and install it to my mobile (S60 5th Edition). I 
> can open the application in the mobile but the internet connection 
> feature is not work.
> But there is not problem if I run it in my PC (with normal build). 
> Anyone can give me some advise?
> Regards,
> Thomas

Hi Thomas!

Please use the Qt mailing lists for Qt related questions.

Symbian each application comes with a list of capabilities that are used
to restrict what a application may or may not do on the phone. Internet
access is one of those. So my guess is that your application is lacking
the required capability.

See

http://www.forum.nokia.com/Technology_Topics/Device_Platforms/S60/Platform_Security/Capability_Descriptions.xhtml

for a list of capabilites and what they are required for.

Best Regards,
Tobias

-- 
Tobias Hunger
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Newbie Question in running HTTP Sample Application in Symbian Mobile

2010-04-13 Thread Thomas Tsang
I am just a newbie in Qt, when I open the examples under 
Qt4.6.2\Examples\Webkit, build them with S60_5th_Edition_SDK_v1.0, create the 
SIS package and install it to my mobile (S60 5th Edition).  I can open the 
application in the mobile but the internet connection feature is not work.

But there is not problem if I run it in my PC (with normal build).  Anyone can 
give me some advise?

Regards,
Thomas


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