Results 1 to 3 of 3

Thread: 2 noob questions.. but Nokia's site doesn't open so I can't find the answers there :(

  1. #1
    Join Date
    Jan 2012
    Posts
    15
    Qt products
    Qt3
    Platforms
    Windows

    Default 2 noob questions.. but Nokia's site doesn't open so I can't find the answers there :(

    I'm working on qt creator... so my question is, as noob as it might sound:

    If I have a window, with one text box and a push button, how can I get the text from that box and put it into a string... basically it must be something inside the "on_button_clicked" function...but I don't know what... the nokia site doesn't open for me so I can't search there... :S...

    Oh and another question... can I do operations with that string on qt like i'd do on any normal c++ ide? Can I include string.h, cstdlib, etc?? Or do I need to do something special to get to do that...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: 2 noob questions.. but Nokia's site doesn't open so I can't find the answers ther

    Quote Originally Posted by danoc93 View Post
    the nokia site doesn't open for me so I can't search there...
    Too bad you consider us the second line of defense...


    If I have a window, with one text box and a push button, how can I get the text from that box and put it into a string... basically it must be something inside the "on_button_clicked" function...but I don't know what... :S...
    Look for a method from QTextEdit (or QLineEdit or whatever you are using) API that returns a QString object.

    Oh and another question... can I do operations with that string on qt like i'd do on any normal c++ ide? Can I include string.h, cstdlib, etc??
    Yes, you can. By the way... wouldn't it be easier to just try and see instead of asking?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: 2 noob questions.. but Nokia's site doesn't open so I can't find the answers ther

    2 noob questions.. but Nokia's site doesn't open so I can't find the answers there
    The Qt Developer Network online should not be your first choice anyway. Every install of Qt has this minor inconvenience called Qt Assistant: the command is "assistant". In it you will find tomes of great wisdom, including the API documentation and examples-a-plenty.

    If you use Qt Creator, then you don't even need to start Assistant itself because the functionality is embedded in the IDE. Just select Help from the left tool bar or type Ctrl-K, a question mark, a space, and then start typing a term to search for in the manual.

    A really good place to start would be to search in Assistant for "getting started". To answer you specific questions you might search for QLineEdit or QTextEdit (whichever you are using) and QString (for ways to work with other string representations).

Similar Threads

  1. Nokia Open C++ Download
    By Granty in forum Newbie
    Replies: 6
    Last Post: 19th October 2010, 21:33
  2. Not able to open Qt Mobility applications on Nokia N97 Device!
    By rajeevsahu in forum Installation and Deployment
    Replies: 0
    Last Post: 16th July 2010, 06:50
  3. Open positions@Nokia Maemo Devices
    By Kristiina in forum Jobs
    Replies: 0
    Last Post: 10th March 2010, 09:09
  4. Who gets questions answered and who doesn't?
    By gjshannon in forum General Discussion
    Replies: 15
    Last Post: 19th March 2009, 21:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.