{"id":26824,"date":"2020-10-06T18:32:19","date_gmt":"2020-10-06T18:32:19","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=26824"},"modified":"2020-10-06T18:32:19","modified_gmt":"2020-10-06T18:32:19","slug":"build-and-debug-qt-projects-on-linux-with-qt-visual-studio-tools","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/build-and-debug-qt-projects-on-linux-with-qt-visual-studio-tools\/","title":{"rendered":"Build and debug Qt projects on Linux with Qt Visual Studio Tools"},"content":{"rendered":"<p>Qt is a popular cross-platform framework for application development and user interface design. Its various libraries and toolsets can be used to create, test, and deploy applications that target multiple platforms and operating systems including Linux, Windows, macOS and embedded\/microcontroller systems.\u00a0Qt recently released a <a href=\"https:\/\/www.qt.io\/blog\/qt-visual-studio-tools-2.6.0-released\">new version of the Qt Visual Studio Tools extension<\/a> that integrates with Visual Studio\u2019s <a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/linux\/download-install-and-setup-the-linux-development-workload?view=vs-2019\">Linux development with C++<\/a> workload. This extension allows you to build and debug MSBuild-based Qt projects on both Windows and Linux directly from Visual Studio.<\/p>\n<p>To illustrate this integration, Qt has published two tutorials that describe how to create a cross-platform Qt project in Visual Studio that runs on both Windows and an embedded Linux device.<\/p>\n<ul>\n<li>Part 1: <a href=\"https:\/\/www.qt.io\/blog\/creating-an-embedded-qt-quick-application-in-visual-studio-1\/2\">Creating an Embedded Qt Quick Application in Visual Studio (1\/2)<\/a>\n<ul>\n<li>This post walks through the steps of preparing your development environment, creating a new project, building and running the project on Windows, and cross-compiling for a <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b\/\">Raspberry Pi 3 Model B<\/a> on WSL using Visual Studio\u2019s <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl\/\">native support for WSL<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>Part 2: <a href=\"https:\/\/www.qt.io\/blog\/creating-an-embedded-qt-quick-application-in-visual-studio-2\/2\">Creating an Embedded Qt Quick Application in Visual Studio (2\/2)<\/a>\n<ul>\n<li>This post walks through the steps of running the application on the Raspberry Pi and debugging the application with gdbserver and the front-end of the Visual Studio debugger.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-26825\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2020\/10\/qt.png\" alt=\"A module that shows how to add project configurations for both the Windows and the Raspberry Pi versions of Qt.\" width=\"724\" height=\"473\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2020\/10\/qt.png 724w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2020\/10\/qt-300x196.png 300w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>You can read more about the <a href=\"https:\/\/www.qt.io\/blog\/qt-visual-studio-tools-2.6.0-released\">Qt Visual Studio Tools 2.6 release<\/a> on the Qt blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qt is a popular cross-platform framework for application development and user interface design. Its various libraries and toolsets can be used to create, test, and deploy applications that target multiple platforms and operating systems including Linux, Windows, macOS and embedded\/microcontroller systems.\u00a0Qt recently released a new version of the Qt Visual Studio Tools extension that integrates [&hellip;]<\/p>\n","protected":false},"author":2953,"featured_media":26825,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[270,1,317,279],"tags":[],"class_list":["post-26824","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcement","category-cplusplus","category-iot","category-linux"],"acf":[],"blog_post_summary":"<p>Qt is a popular cross-platform framework for application development and user interface design. Its various libraries and toolsets can be used to create, test, and deploy applications that target multiple platforms and operating systems including Linux, Windows, macOS and embedded\/microcontroller systems.\u00a0Qt recently released a new version of the Qt Visual Studio Tools extension that integrates [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/26824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/2953"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=26824"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/26824\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/26825"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=26824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=26824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=26824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}