Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2011

    Post What is the code to go to the next line automatically?

    I am new to Qt and i am trying to do a application using a label to display a paragraph.

    I have written the code and it is displaying the paragraph in a single line.I have used /n to go the new line. But that is what i not needed.

    I am hoping to get the paragraph line by line which means the ends automatically after reaching some extent and it automatically continues in the next line and so on.

    Here is my code:
    label = new QLabel(( "hai anyone please help me out"
    I am in need of help"

    QHBoxLayout *topLeftLayout = new QHBoxLayout;

    QVBoxLayout *leftLayout = new QVBoxLayout;

    QVBoxLayout *rightLayout = new QVBoxLayout;

    QHBoxLayout *mainLayout = new QHBoxLayout;

    Can anyone guide me to finish my application.Here i have used /n to continue in the next the next line i dont want to use /n is it possible to go to the next line?

    Anyone help me out?

    Last edited by mkhpad; 2011-11-15 at 09:20.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    જુનાગઢ - India

    Re: What is the code to go to the next line automatically?

    Please don't create multiple thread for the same question. Continue with this thread.

Similar Threads

  1. Automatically invoke a command in a code
    By kenichi24 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-08-25, 08:16
  2. Emulator leaving at this code line
    By raj8nokiaforum in forum Symbian
    Replies: 4
    Last Post: 2008-09-26, 11:07
  3. How can i write code into second line. know me that Keyword.
    By Tanya in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-03-05, 11:17
  4. Set automatically pin code for an incoming connection in Bluetooth.
    By ajsanchez in forum Symbian Networking & Messaging (Closed)
    Replies: 14
    Last Post: 2004-10-27, 15:09
  5. Why is there an error with this line of code?
    By advocatee in forum Symbian
    Replies: 2
    Last Post: 2003-08-25, 09:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts