Re: [Development] Request: devcontainer feature for vscodeext

2025-01-29 Thread Alex Shaw
get Qt working with devcontainers, but I found they all required custom Docker images. Devcontainer Features provide a way to avoid that by using shell scripts to install software in the container. Thanks, Alex On Wed, Jan 29, 2025 at 3:45 AM Joerg Bornemann wrote: > On 1/27/25 18:07, Alex Shaw w

[Development] Request: devcontainer feature for vscodeext

2025-01-27 Thread Alex Shaw
Hello. I recently discovered that Qt has an official plugin (or plugins) for Visual Studio Code. Is there any interest in adding a Devcontainer Feature to go with it? For those who don't know, devcontainers are an open specification for configuring virtual containers to use as development hosts. G

Re: [Development] Question about QtDeclarative Internals

2021-04-25 Thread Alex Shaw
Hi Ulf, Thanks for the advice. I think I got it working. Patch submitted on Gerrit: https://codereview.qt-project.org/c/qt/qtdeclarative/+/345339 It includes documentation and a test, and it works with named imports (i.e. import { version } from "info") Mostly it was just storing the QJSValues as

Re: [Development] Question about QtDeclarative Internals

2021-04-21 Thread Alex Shaw
Hello Fabian, Thanks for replying. The QJSValue represents any basic JS type that could be exported from a regular module. For example: export const MAGIC = 6; export default { name: "Qt6", version: "6.1.3" } In C++: QJSValue magic(6); QJSValue name("Qt6"); QJSValue version("6.1.3"); QJSValu

[Development] Question about QtDeclarative Internals

2021-04-21 Thread Alex Shaw
Hello, In QtDeclarative, can a QV4::ReturnedValue or a QV4::Value be converted into an ExecutableCompilationUnit? I'm trying to work on a patch for QJSEngine to allow importing modules from C++ (similar to Node.js: import fs from "fs") The planned method is something along the lines of: void QJSE