[Qt-interest] Is there a platform-independent way to get the available amount of memory?

Robert Hairgrove evorgriahr at hispeed.ch
Sat Feb 26 14:23:01 CET 2011


On Sat, 2011-02-26 at 13:46 +0100, Robert Hairgrove wrote:
> Is there a Qt module or function that returns the available amount of
> system RAM and/or virtual memory available? This would be useful for
> limiting file sizes for certain things, such as an in-memory database. I
> couldn't find anything like that anywhere in the docs.

OK, looks like I can use the C functions memmax() etc. for this kind of
work.




More information about the Qt-interest-old mailing list