Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Pyside-rcc command line compression question
Forum Updated to NodeBB v4.3 + New Features

Pyside-rcc command line compression question

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 2.7k Views 1 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.
  • A Offline
    A Offline
    abelvedere
    wrote on last edited by
    #1

    What are the valid compression levels for the -compress flag of pyside-rcc?

    I am trying various numbers but it seems to accept anything including negative numbers, and what ever the number seems to make no difference on the size of the output file.

    The resources are png images at the moment so i don't expect a big reduction in size, but i would expect some tiny difference between using the -no-compress flag and the -compress 9 flag.

    anyone knows if the compress flag is working/active on pyside-rcc comman line?

    system:
    ubuntu 11.10 64bit
    python 2.7
    pyside 1.1.0

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre.laszlo
      wrote on last edited by
      #2

      Try the threshold flag. The argument is given as a percentage (0-100).

      I dug it up here:

      http://qt.gitorious.org/pyside/pyside-tools/blobs/master/pyrcc/rcc.cpp#line124

      The compression itself is done using the qCompress method of the QByteArray class, which is documented here:

      http://qt-project.org/doc/qt-4.8/qbytearray.html#qCompress

      1 Reply Last reply
      0

      • Login

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