Qt Extension 1.4.0 for VS Code released

We're happy to announce the release of version 1.4.0 of the Qt Extension for Visual Studio Code! This release cooked for a bit as pre-release 1.3.0 on the marketplace and has now been promoted to a proper release. Take a look at what's new in this release.

This is primarily a bugfix release. In addition, some preparatory work was done for the upcoming QML debugging feature. More about this will be revealed in a separate blog post.

We're adding only one more prominent feature: the ability to create Qt projects and Qt-related files. For that, we've added two new commands:

  • Qt: Create New Project
  • Qt: Create New File

As usual, these are available via the command palette. The following is a brief rundown of what these commands offer.

Create Qt projects

This command creates a new Qt project and opens it in VS Code.

To create a project, select or create a preset for a particular project type:

  1. Go to Command Palette, and then select Qt: Create New Project.
  2. In New Project, enter a name for the project.

{New Project dialog}

A command line UI appears in VS Code's Terminal. Select a preset or Manually select features to create your own preset.

{Pick a preset in Terminal}

Now, you can select a CMake kit for your project and build and run it.

Please see the documentation of this command for more details.

Add files to projects

Use this command to add Qt-related files to your existing project.

To create a file in the current project directory, select or create a preset for a particular file type:

  1. Go to Command Palette, and then select Qt: Create New File.
  2. In New File, enter a name for the file.

{New File dialog}

In the command line interface that appears in Terminal, select a preset or Manually select features to create your own preset.

{Pick a preset in Terminal}

Edit the newly created file to your liking.

A bit of background on the CLI

The command line interface started in the terminal is a standalone application named qtcli. This application is shipped with the qt-core extension. We've chosen this approach because we're hoping that qtcli can be usable in the future in other places, like Neovim and the like.

Also, there's no consistent UI wizard framework established in VS Code that we could use. However, we plan to offer a GUI variant for controlling in the future.

 

If you encounter any bugs or usability issues, please report them in our bug tracker.

 


Blog Topics:

Comments

K
Kelteseth
0 points
7 days ago

The QtQuick project wizard creates a Window and not an ApplicationWindow. I have reported this before that this has cost us hundreds of man-hours of fixing focus issues https://bugreports.qt.io/browse/QTBUG-116036 This is still not fixed in QtCreator even thought many people complained. https://bugreports.qt.io/browse/QTCREATORBUG-29500

Max Holloway
-2 points
6 days ago

At some point I thought about trying an online casino and I was recommended the site https://jeetbuzz-bd.com/payments/. After registering, I was pleasantly surprised how convenient everything was. The site's interface is intuitive, which allowed me to immediately immerse myself in the game without unnecessary delays. Gambling is not so common in Bangladesh, and at first I was worried about safety, but the site inspired confidence due to transparent conditions and fast payouts. This is a really good place for those who want to try their hand at gambling without worrying about unnecessary risks.