.moc Qt MOC file

Text & source code

MIME typetext/x-moc
DescriptionQt MOC file
AcronymQt MOC – Qt Meta Object Compiler
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .moc file?

A .moc file is a “Qt MOC file” (MIME type text/x-moc). Qt MOC stands for Qt Meta Object Compiler.

How do I open a .moc file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .moc file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.moc shows the guessed type.

Which format is .moc based on?

Technically a .moc file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .moc?

The MIME type is text/x-moc. In the Apache web server: AddType text/x-moc .moc; in nginx: types { text/x-moc moc; }.

Nearby entries