Awalrod
Awalrod

Reputation: 268

Can I edit form1.ui.h outside of qt editor?

The Title says everything. I'm pretty new to qt and don't really like the editor it provides.

vim form1.ui.h doesn't work.

Upvotes: 0

Views: 61

Answers (1)

Predelnik
Predelnik

Reputation: 5246

Most likely you mean header file generated from your .ui file. Well, since it's generated - editing it is not very good idea, because it will be regenerated from .ui each time you build you program.

But you obviously can:

  • Edit .ui file with any xml/text editor. Though it's really strange and wouldn't win much over using designer itself.
  • Do not use .ui files at all - encapsulate creation of desired interfaces in your own classes containing simple C++/Qt code. That way actually is not that bad if you're experienced with Qt layout/widget system and know what you wish to achieve. Because there's no any kind of pixel hunting needs to be done in designer and placing things in appropriate way may actually be done even in more structured manner in code than in form creation. Though as I said it's not the way for everyone and you have to be accurate, also it's better separate interface code from other functionality.

Upvotes: 2

Related Questions