Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 9

Qt-interest Archive, June 2003
Linux Kernel Version info


Message 1 in thread

Hi, 

Is there a function in Qt by which retrives info about Linux Kernel
Release/Version ?
Thanks!

Gianni


Message 2 in thread

jackt70 wrote:
> Hi, 
> 
> Is there a function in Qt by which retrives info about Linux Kernel
> Release/Version ?

For Windows and Mac you got Qt::WindowsVersion and Qt:MacintoshVersion.
http://doc.trolltech.com/3.2/qt.html#WindowsVersion-enum
http://doc.trolltech.com/3.2/qt.html#MacintoshVersion-enum

On linux you might do a 'system("uname -r")' to get the kernel version.

> Gianni

Cheers
Rolf


Message 3 in thread

Hi,

> Is there a function in Qt by which retrives info about Linux Kernel
> Release/Version ?

No, you'll have to use platform-dependent code such as uname(2).

--
 [ signature omitted ] 

Message 4 in thread

Hi,

not directly via Qt, but you can read
/proc/sys/kernel/osrelease.

Regards,

	Carsten

On Mon, 23 Jun 2003, jackt70 wrote:
> Hi, 
> 
> Is there a function in Qt by which retrives info about Linux Kernel
> Release/Version ?
> Thanks!
> 
> Gianni
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/


Message 5 in thread

jackt70 wrote:
> 
> Hi,
> 
> Is there a function in Qt by which retrives info about Linux Kernel
> Release/Version ?

Oh yes, there is! But it's only available in the Win32 version of Qt,
since it's a little bit platform dependent... (sorry, couldn't resist on
this beautiful day :)


Cheers, oliver


Message 6 in thread

On Tue, 24 Jun 2003, Till Oliver Knoll wrote:
> jackt70 wrote:
> > 
> > Hi,
> > 
> > Is there a function in Qt by which retrives info about Linux Kernel
> > Release/Version ?
> 
> Oh yes, there is! But it's only available in the Win32 version of Qt,

Wow, I'm impressed!
So, Win32 has a Linux core! 8-)

> since it's a little bit platform dependent... (sorry, couldn't resist on
> this beautiful day :)
> 
> 
> Cheers, oliver
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/