[GH-ISSUE #124] How to create .ui files with Qt Creator? #72

Closed
opened 2026-05-05 11:03:31 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @vadi2 on GitHub (Apr 20, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/124

Selection_424

Qt Creator doesn't like custom modules - what's the right way to deal with this in Qml.Net?

Originally created by @vadi2 on GitHub (Apr 20, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/124 ![Selection_424](https://user-images.githubusercontent.com/110988/56461393-35239980-6380-11e9-8d39-bfc6ab4e4f2b.png) Qt Creator doesn't like custom modules - what's the right way to deal with this in Qml.Net?
Author
Owner

@pauldotknopf commented on GitHub (Apr 21, 2019):

Ignore the intellisense errors for now. Everything is valid. It's just the IDE getting confused.

This will be fixed in #72. Follow that issue if you want to be notified when this is completed.

<!-- gh-comment-id:485221334 --> @pauldotknopf commented on GitHub (Apr 21, 2019): Ignore the intellisense errors for now. Everything is valid. It's just the IDE getting confused. This will be fixed in #72. Follow that issue if you want to be notified when this is completed.
Author
Owner

@vadi2 commented on GitHub (Apr 21, 2019):

Thanks! I'll follow that issue. Unfortunately the graphical d'n'd design bails out on the errors, but it is fairly simple to comment things back and forth.

<!-- gh-comment-id:485281403 --> @vadi2 commented on GitHub (Apr 21, 2019): Thanks! I'll follow that issue. Unfortunately the graphical d'n'd design bails out on the errors, but it is fairly simple to comment things back and forth.
Author
Owner

@vadi2 commented on GitHub (May 8, 2019):

For anyone else looking: all you need to do is comment/uncomment your import statement for Qt Creator to work fine. Adding the following two tasks into tasks.json and calling them in your launch.json would work:

        {
            "label": "disable-qml",
            "command": "sed",
            "type": "shell",
            "args": [
                "-i",
                "'s|import test 1.1|// import test 1.1|g'",
                "${workspaceFolder}/Main.qml"
            ],
            "presentation": {
                "reveal": "silent"
            },
            "problemMatcher": "$tsc"
        },
        {
            "label": "enable-qml",
            "command": "sed",
            "type": "shell",
            "args": [
                "-i",
                "'s|// import test 1.1|import test 1.1|g'",
                "${workspaceFolder}/Main.qml"
            ],
            "presentation": {
                "reveal": "silent"
            },
            "problemMatcher": "$tsc"
        }
<!-- gh-comment-id:490507087 --> @vadi2 commented on GitHub (May 8, 2019): For anyone else looking: all you need to do is comment/uncomment your `import` statement for Qt Creator to work fine. Adding the following two tasks into `tasks.json` and calling them in your `launch.json` would work: ```json { "label": "disable-qml", "command": "sed", "type": "shell", "args": [ "-i", "'s|import test 1.1|// import test 1.1|g'", "${workspaceFolder}/Main.qml" ], "presentation": { "reveal": "silent" }, "problemMatcher": "$tsc" }, { "label": "enable-qml", "command": "sed", "type": "shell", "args": [ "-i", "'s|// import test 1.1|import test 1.1|g'", "${workspaceFolder}/Main.qml" ], "presentation": { "reveal": "silent" }, "problemMatcher": "$tsc" } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#72
No description provided.