Results 1 to 8 of 8

Thread: Is this a known bug in moc?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    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: Is this a known bug in moc?

    If at all then not in moc but rather in QMetaObject::normalizedSignature(). But in general this should work, maybe the problem is somewhere else?

    If it's known - that I do not know but you can check that yourself using the task-tracker.
    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
    May 2009
    Posts
    133
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 4 Times in 3 Posts

    Default Re: Is this a known bug in moc?

    Quote Originally Posted by wysota View Post
    If at all then not in moc but rather in QMetaObject::normalizedSignature().
    Yep.

    Quote Originally Posted by wysota View Post
    But in general this should work, maybe the problem is somewhere else?
    It should work but it doesn't work. We have two identical (from C++ pov) signatures and one is treated differently by moc than the other. Isn't this clearly a bug?
    What do you mean by maybe the problem is somewhere else?

    Quote Originally Posted by wysota View Post
    If it's known - that I do not know but you can check that yourself using the task-tracker.
    There were a couple of tickets about moc and signatures, all fixed.
    I created a ticket for this.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    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: Is this a known bug in moc?

    Quote Originally Posted by piotr.dobrogost View Post
    It should work but it doesn't work. We have two identical (from C++ pov) signatures and one is treated differently by moc than the other. Isn't this clearly a bug?
    The documentation gives an example almost identical to yours (it uses a pointer and not a reference), so I assume they checked that it works. You might check if changing the reference to a pointer makes it work.

    What do you mean by maybe the problem is somewhere else?
    In some other part of the code or because of some non-printable character. I'm just guessing, it's simply hard to believe the example from the docs doesn't work.

    There were a couple of tickets about moc and signatures, all fixed.
    But moc has nothing to do with this...
    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.


  4. #4
    Join Date
    May 2009
    Posts
    133
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 4 Times in 3 Posts

    Default Re: Is this a known bug in moc?

    Quote Originally Posted by wysota View Post
    I'm just guessing, it's simply hard to believe the example from the docs doesn't work.
    What I presented in my op is not the example from the docs but my code. I only copied and pasted signal declaration directly from the docs to show it's part of qt and not mine.

    Quote Originally Posted by wysota View Post
    But moc has nothing to do with this...
    In the most narrow sense moc is only a compiler but in a broader sense it's name of whole concept, system (name it as you like) which this compiler is only one part of. When using moc in the second sense QMetaObject::normalizedSignature() is vital part of moc.
    On the other hand, if we agree moc is only a compiler than how should we call the whole system of meta information in qt?

Similar Threads

  1. Invoking MOC w/MSVS + Qt Visual Integration
    By WinchellChung in forum Newbie
    Replies: 4
    Last Post: 10th August 2010, 23:56
  2. Replies: 12
    Last Post: 7th July 2009, 18:32
  3. Compilation error with MSVC: Wrong MOC version
    By vuakko in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2009, 10:59
  4. How to avoid creation of MOC files on each compilation
    By nileshsince1980 in forum Qt Programming
    Replies: 4
    Last Post: 29th May 2009, 09:00
  5. moc with same file names?
    By cjhuitt in forum Qt Programming
    Replies: 9
    Last Post: 27th April 2007, 21:36

Tags for this Thread

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.