Results 1 to 10 of 10

Thread: QStringList problem :/

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: QStringList problem :/


  2. #2
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    129
    Thanked 3 Times in 3 Posts

    Default Re: QStringList problem :/

    Qt Code:
    1. QString l = "";
    2. path.join(l + ", ");
    3. ui->lineEdit_6->setText(l);
    To copy to clipboard, switch view to plain text mode 
    doesn't workkkkkkkk
    I am a beginner actually...
    Can you help me on this?

  3. #3
    Join Date
    Aug 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QStringList problem :/

    I haven't tried it out, but reading the doc, I think you need to do:

    Qt Code:
    1. QString l = path.join(", ");
    2. ui->lineEdit_6->setText(l);
    To copy to clipboard, switch view to plain text mode 

    See if that works.
    bepaald

  4. #4
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    129
    Thanked 3 Times in 3 Posts

    Default Re: QStringList problem :/

    Quote Originally Posted by bepaald View Post
    I haven't tried it out, but reading the doc, I think you need to do:

    Qt Code:
    1. QString l = path.join(", ");
    2. ui->lineEdit_6->setText(l);
    To copy to clipboard, switch view to plain text mode 

    See if that works.
    bepaald
    Yep, thank you!

Similar Threads

  1. qstringlist problem
    By stella1016 in forum Qt Programming
    Replies: 4
    Last Post: 17th December 2009, 10:16
  2. problem clear QStringList
    By jaca in forum Newbie
    Replies: 4
    Last Post: 30th May 2008, 17:10
  3. QStringList
    By jaca in forum Qt Programming
    Replies: 5
    Last Post: 17th May 2008, 11:12
  4. QStringList scope problem
    By ht1 in forum Qt Programming
    Replies: 5
    Last Post: 30th November 2007, 20:44
  5. Replies: 7
    Last Post: 2nd June 2006, 13:48

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.