Results 1 to 3 of 3

Thread: Q3PopUpmenu: Qchar * to QString

  1. #1
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Q3PopUpmenu: Qchar * to QString

    editing test
    Last edited by user_mail07; 1st February 2007 at 20:40. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Cool Re: Q3PopUpmenu: Qchar * to QString

    Please use the CODE tags when writing code again instead of your own system. Then the syntax will be highlighted.

    Anyways, what kind of an object is strLabel? If strLabel is just a QString then your constructor needs to look like:

    Qt Code:
    1. pPopupMenu = DisplayPopupMenu(mainWindow, strLabel);
    To copy to clipboard, switch view to plain text mode 

    Your constructor says it takes a QString as the 2nd argument but the data( ) function of a QString returns a QChar*. I hope this helps.

  3. The following user says thank you to ToddAtWSU for this useful post:

    user_mail07 (1st February 2007)

  4. #3
    Join Date
    Jan 2007
    Posts
    92
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: Q3PopUpmenu: Qchar * to QString

    Thanks it worked. it was QString.

Similar Threads

  1. QString problem
    By vermarajeev in forum Qt Programming
    Replies: 9
    Last Post: 26th October 2006, 19:10
  2. QSqlQueryModel + set Write
    By raphaelf in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2006, 08:55
  3. Converting QString to unsigned char
    By salston in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:10
  4. Q3PopupMenu
    By raphaelf in forum Qt Programming
    Replies: 15
    Last Post: 6th March 2006, 17:57
  5. [SOLVED] Widget plugin ... how to ?
    By yellowmat in forum Newbie
    Replies: 10
    Last Post: 29th January 2006, 20:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.