Results 1 to 2 of 2

Thread: doubt in Qinputdialog

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default doubt in Qinputdialog

    Qt Code:
    1. QString text = QInputDialog::getText(this, tr("select photots"),
    2. tr("select the photos to display Min=5s Max=60s"), QLineEdit::Normal,
    3. "10", &ok);
    To copy to clipboard, switch view to plain text mode 
    i have doubt in above code..it executing properly..my doubt,,i need to split the label text in two line
    present output:
    Qt Code:
    1. "select the photots to display Min=5s Max=60s
    To copy to clipboard, switch view to plain text mode 
    i need output is:
    Qt Code:
    1. "select the photos to display"
    2. "Min=5s Max=60s"
    To copy to clipboard, switch view to plain text mode 
    what changes i have to make?? please give some suggestion for this
    Thanks in advance

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: doubt in Qinputdialog

    Hi, just add a line break (\n) where you like it.

    Ginsengelf

Similar Threads

  1. Customised QinputDialog
    By vinod sharma in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2011, 14:13
  2. Problem in QInputDialog...!
    By hakermania in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2010, 14:58
  3. QInputDialog and OSG
    By Pertur in forum Qt Programming
    Replies: 3
    Last Post: 30th July 2010, 09:34
  4. How to use Qinputdialog in Symbian
    By ramesh.bs in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd June 2010, 11:51
  5. QInputDialog
    By bkv in forum Newbie
    Replies: 2
    Last Post: 6th October 2006, 07:34

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.