Results 1 to 2 of 2

Thread: doubt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Posts
    21
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post doubt

    hi,
    i am trying to replace the below code in vc++
    Qt Code:
    1. LPCSTR p1,p;
    2. if (*p1 == *p++)
    3. return p1+1;
    To copy to clipboard, switch view to plain text mode 

    what i have done till now is

    Qt Code:
    1. QChar *str1data,strp;
    2. if (str1data == strp++)
    3. {
    4. return str1data+1;
    5. }
    To copy to clipboard, switch view to plain text mode 
    compile error that i am getting :QString::QString(QChar)' : cannot convert parameter 1 from 'QChar *' to 'QChar

    What should be done regarding this? I am poor in programming plz bear with me...
    Last edited by jpn; 8th February 2008 at 08:09. Reason: missing [code] tags

Similar Threads

  1. Replies: 2
    Last Post: 10th January 2008, 12:52
  2. Doubt about includes
    By xEsk in forum Newbie
    Replies: 2
    Last Post: 15th November 2007, 20:20
  3. QGraphicsItem HoverEvent Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2007, 17:40
  4. Doubt ?
    By Cutey in forum Qt Tools
    Replies: 2
    Last Post: 3rd March 2007, 09:45
  5. Basic C++ doubt
    By munna in forum General Programming
    Replies: 8
    Last Post: 30th November 2006, 20:54

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.