0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Qt CreatorのインストールからHello Worldまで

0
Posted at

はじめに

UbuntuでQt Creatorを使ってC++ GUI開発を始め方を紹介します。

インストール手順

できなかった手順👎(apt install)

下記のコマンドではサンプルやドキュメントが入りませんでした。

⚠ sudo apt install qt6-base-dev qt6-declarative-dev qtcreator build-essential -y

できなかった手順👎(Discover)

Discoverでインストールしましたが、サンプルやドキュメントが入りませんでした。
Screenshot from 2026-03-03 11-29-30.png

成功した手順👌(Qtioサイト)

Qt.ioのQt Developmentサイトでユーザー登録し、インストーラをダウンロードします。
Qt Development
(download tryをクリック)
Screenshot from 2026-03-03 11-55-33.png
次の画面
私は商用でも、学生でもないのでオープンソースにします。
Screenshot from 2026-03-03 14-23-55.png

Qtバイナリーをダウンロードです
Screenshot from 2026-03-03 14-39-51.png
後は、よく読みユーザー登録します。

ダウンロードファイルはqt-online-installer-linux-x64-4.10.0.run
となりますので、実行権限を設定し、実行しました。

chmod +x qt-online-installer-linux-x64-4.10.0.run
qt-online-installer-linux-x64-4.10.0.run

今度はドキュメントとサンプルもインストールされました。
Screenshot from 2026-03-02 17-21-30.png

Hello Worldを作成

  • プロジェクトの作成
    QtCreatorの🏠(ようこそ)を選択し、右側にあるcreate Project..をクリック
    Qt Quicksプリケーションを選択
  • デバック設定
    QtCreatorの💻Debugをクリックし、デバック設定
    ▶をクリックし動作すれば完了です。

まとめ

windows、.net、VSCodeから離れ、Linuxデスクトップアプリの開発を知る足掛けとします。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?