Results 1 to 5 of 5

Thread: QItemEditorFactory and custom enum types.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QItemEditorFactory and custom enum types.

    As I said in the other thread, moc treats the "Qt" namespace in a special way. And it's not releated to Q_MOC_RUN (at least that's not enough). There is a clause in moc source code related to the namespace. You can see that in Generator::generateCode() in src/tools/moc/generator.cpp (and likely elsewhere too).
    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.


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

    Default Re: QItemEditorFactory and custom enum types.

    Thank you very much wysota, you just pointed exactly why Trolltech had made the Qt namespace an exception for MOC. It's now obvious to me that the Q_GADGET / Q_MOC_RUN isnt enough. i'll stick to declaring my enums in a class named "RE::E".

Similar Threads

  1. show custom enum property in designer?
    By qlands in forum Qt Programming
    Replies: 0
    Last Post: 5th July 2011, 17:12
  2. Q_PROPERTY and deeply nested custom types
    By Sammy D'Souza in forum Newbie
    Replies: 1
    Last Post: 15th May 2010, 11:26
  3. Working with QDBus and custom types
    By JuBe in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2009, 16:20
  4. QItemEditorFactory and custom Model
    By maximAL in forum Qt Programming
    Replies: 5
    Last Post: 26th November 2007, 13:45
  5. Store an custom enum in QSettings
    By Lykurg in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2007, 20:06

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.