Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How many qm files are in rcc file
Forum Updated to NodeBB v4.3 + New Features

How many qm files are in rcc file

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 615 Views 2 Watching
  • 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.
  • K Offline
    K Offline
    KiranRudigi
    wrote on last edited by
    #1

    Hi everyone,

    I have multiple .qm files in my project. I am bundling these .qm files into rcc file. I am loading dynamic rcc file. The problem am facing is, how will i know that how many .qm files are in the respective rcc file.

    Thanks in advance.

    1 Reply Last reply
    1
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You can enumerate them

      QDirIterator it(":", QDirIterator::Subdirectories);
      while (it.hasNext()) {
          qDebug() << it.next();
      }
      

      but i wonder why you need to know how many?
      Is knowing the name not enough ?

      1 Reply Last reply
      4
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        You should treat the rcc file like a local file system. Given this concept, try the following.

        Dir dir(":/")
        qDebug() << dir.entryList() << endl;
        qDebug() << dir.entryList().size() << endl;
        

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        K 1 Reply Last reply
        4
        • dheerendraD dheerendra

          You should treat the rcc file like a local file system. Given this concept, try the following.

          Dir dir(":/")
          qDebug() << dir.entryList() << endl;
          qDebug() << dir.entryList().size() << endl;
          
          K Offline
          K Offline
          KiranRudigi
          wrote on last edited by
          #4

          @dheerendra thanks for your help. It worked.

          Pablo J. RoginaP 1 Reply Last reply
          0
          • K KiranRudigi

            @dheerendra thanks for your help. It worked.

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @KiranRudigi is your issue solved? if so please don't forget to mark your post as such. Thanks

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            1

            • Login

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