Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt5's lupdate is confused by "class" within template angle brackets
Forum Update on Monday, May 27th 2025

Qt5's lupdate is confused by "class" within template angle brackets

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
lupdateqtlinguistqt5.12.x
1 Posts 1 Posters 508 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NicolasB
    wrote on 8 Dec 2022, 15:27 last edited by NicolasB 12 Sept 2022, 14:26
    #1

    Hello,

    I am currently working on a translation system for ParaView, and I am struggling with a strange lupdate warning:

    /home/username/paraview/Qt/Core/pqServerManagerModel.cxx:77: Ignoring definition of undeclared qualified class
    

    This class is predefined in its header and it seems to disturb lupdate. The strange thing is that other classes like this one does not raise any warning despite it being very similar.

    We tried to use Q_DECLARE_TR_FUNCTIONS to fix it but it did not work. Also, the -silent option does not silence warnings.

    Did anyone find a fix for this kind of issues ?

    I use Qt 5.12, and ParaView is in C++11

    Kind regards,

    Nicolas

    EDIT: This is related to a non-fixed bug for Qt5 found here:

    template <class T>
    inline T pqGetItemAtIndex(const pqServerManagerModel* model, int index);
    
    class PQCORE_EXPORT pqServerManagerModel : public QObject
    {
      Q_OBJECT
     ...
      class pqInternal;
      pqInternal* Internal;
    };
    

    lupdate detects the class T in the header and then is confused at the next occurence of class in the file (class pqInternal;)

    1 Reply Last reply
    0

    1/1

    8 Dec 2022, 15:27

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved