Type of control for a non-interactive widget

I have a set of inputs whose type can be changed, and one of the input types is read-only. What's the best way to represent this in a cross-platform manner?

Right now I went with a disabled button which looks like the following:

Ubuntu:

Ubuntu rendering

macOS:

macOS rendering

Windows:

gif displaying the example

I understand a disabled button is a bit misleading as the semantics imply it could be enabled and interacted with. I'm abusing it for it's aesthetics.

For reference I'm using the Qt framework.