Results 1 to 2 of 2

Thread: Cant recover enum information for Qstyle ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Cant recover enum information for Qstyle ?

    Following instructions I have found at http://labs.qt.nokia.com/2008/10/09/...g-enum-values/
    I want to know what PixelMetric are asking me the app.
    So first I write
    Qt Code:
    1. QMetaObject meta = QStyle::staticMetaObject;
    To copy to clipboard, switch view to plain text mode 
    But.... I have 0 enumeratorCount
    Qt Code:
    1. qDebug()<<meta.enumeratorCount();
    To copy to clipboard, switch view to plain text mode 
    So it is imposible to use the next step, to
    Qt Code:
    1. for (int i=0; i < meta.enumeratorCount(); ++i) {
    2. QMetaEnum m = meta.enumerator(i);
    3. if m.name() == "....."
    To copy to clipboard, switch view to plain text mode 

    Any idea to solve this? I want to see the 'literal' string of the pixelmetrics values asked for the app.
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Cant recover enum information for Qstyle ?

    Don't use QMetaEnum, resolve the enums yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 14th July 2011, 12:28
  2. QTcpServer Recover From Break?
    By ManuMies in forum Qt Programming
    Replies: 4
    Last Post: 12th November 2010, 13:48
  3. How to recover Space after build
    By SandsofTime in forum Installation and Deployment
    Replies: 2
    Last Post: 16th February 2010, 03:30
  4. Recover .ui file
    By Macok in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2009, 14:41
  5. Problem to recover an object via a QAction
    By Potch in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2008, 11:19

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.