Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
いくつかの検索にもかかわらず、QT Creator 2.3.1 を使用して C++ クラスのゲッターとセッターを自動生成する方法を見つけることができませんでした。そうする方法を知っていますか?
Refactor次に、メンバーを右クリックしてGenerate Getter and Setter member function完了です:)
Refactor
Generate Getter and Setter member function
Qt Creator 3.2.x では、メンバーを作成し、それをクリックしてalt+を押しEnterます。
クラス定義のメンバー変数にテキスト カーソルを置き、Alt+Enter を押します。