我正在用C ++开发QT应用程序。由于我喜欢CLion,我想使用这个IDE来编写我的代码。我的问题:我无法打开CREATE OR REPLACE PROCEDURE UpdateDDATransferAccount(IN [parameter_name] [data_type](size) ...)
-- query settings
BEGIN
DECLARE statement = VARCHAR(2000) -- size of query string
SET statement = 'UPDATE [schema].' || '[table_name]' || ' SET [field_name] = ' || '[parameter_name]' || ' ... ' WHERE ' || '[field_name]' || ' = ' || '[parameter_name_or_value]';
EXECUTE IMMEDIATE statement;
END;
- 文件。克里昂只是忽略了我对文件的双击。我不想像QT创建者那样使用图形编辑器,将XML编辑为文本会非常好。
我如何告诉CLion,它应该打开.ui
- 文件为xml?
答案 0 :(得分:5)
您可以转到设置 - >编辑 - >文件类型并选择XML以在下面添加* .ui文件。
您还可以使用Qt UI Designer注册外部工具来编辑UI文件:https://www.jetbrains.com/help/clion/external-tools.html
答案 1 :(得分:0)
Go to Settings / Preferences | Editor | File Types, select Qt UI Designer Form from the Recognized File Types list, and delete the associated file extension.
Next time you click a .ui file for opening, set the Open in associated application checkbox, and the files of this type will always open in Qt Designer.
https://www.jetbrains.com/help/clion/qt-tutorial.html#edit-ui