7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

visual studioでQt環境構築

Posted at

#目的
C++でGUIをいじりたい→Qt環境を構築しよう→visual studioで構築したい

#Qtのインストール
インストーラーのダウンロード

②アカウントの登録
③Componentの取得
以下のものを取得しました。現在最新のQt6.1.3のMSVC 2019 64-bitはなぜかbuildエラーになるのでバージョンを下げました。
image.png
image.png

#visual studio側の準備
Qt visual studio Toolsを取得します。
image.png

拡張機能→Qt VSTools→Qt Versionsでqmake.exeのパスを入力します。これでビルドできるようになります。
image.png
image.png
image.png

#Qtプロジェクトの作成
Qt Widgets Applicationを選択→QWidgetを選択
image.png
image.png

.uiファイルを選択してウィジットボックスから好きなWidgetを選択します。
image.png

closeボタンを押したときに動作する関数を定義します。
image.png

ビルドして実行
image.png

おわり

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?