Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit ui files with CLion

Tags:

qt

clion

I am developing a QT application in C++. Since i like CLion, I would like to use this IDE to write my code. My problem: I cannot open the .ui - files. CLion just ignores my double-click on the files. I do not want a graphical editor like in QT creator, editing the XML as text would be perfectly fine.

How can I tell CLion, that it should open *.ui - files as xml?

like image 200
Erik Brendel Avatar asked Dec 12 '17 09:12

Erik Brendel


1 Answers

You can go to Settings -> Editor -> File Types and choose XML to add *.ui files below.

What you can also do is register an external tool to edit the UI files with the Qt UI Designer: https://www.jetbrains.com/help/clion/external-tools.html

like image 71
xander Avatar answered Nov 12 '22 13:11

xander