Results 1 to 6 of 6

Thread: Simplified problem about enums and QVariants.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    160
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    33
    Thanked 1 Time in 1 Post

    Default Simplified problem about enums and QVariants.

    Ok i believe the problem i have posted before is too complicated to be read now. Lets make the question simple:
    Can someone provide me with an example of code showing how to construct a QVariant "v", based on a given QVariant::UserType "t" where "t" refers to a type registered for an enum type?
    Then when using qDebug() << v; i expect the type as well as the value to appear in stdout...

    i don't think i can go for a more simple question

    Thanks,
    Pierre.
    Last edited by hickscorp; 8th August 2011 at 19:42.

Similar Threads

  1. Replies: 5
    Last Post: 8th August 2011, 19:41
  2. QString sth between trimmed and simplified
    By pmlody in forum Qt Programming
    Replies: 3
    Last Post: 3rd November 2009, 08:13
  3. Problems with QString::simplified() API
    By montylee in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2009, 04:14
  4. Replies: 1
    Last Post: 15th May 2009, 07:16
  5. How to disply Simplified Chinese in QTextBrowser
    By xjtu in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2008, 08:15

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.