問題タブ [miller-columns]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
smalltalk - Who invented Miller columns?
Wikipedia says Miller columns "resemble" something used earlier in Smalltalk and was independently invented by Miller. Who was first - Smalltalk or Miller?
If Smalltalk was first, then who exactly invented Miller columns and why Miller columns are Miller Columns, not X columns, where X is last name of the inventor?
If Miller was first, why Smalltalk is mentioned?
python - 変化するデータをQColumnView(PyQtを使用)に遅延ロードする方法は?
QColumnView
入力したい階層データ ソースがあります。データ ソースは、REST インターフェイスを使用してサーバーからデータを読み込みます。
階層が次のようになっているとしましょう。
これを表示するには、 を使用するQColumnView
必要があります (これは顧客の要件であるため)。動作は次のようになっているはずです。
プログラムが起動するとCar_Manufacturer
、サーバーから が読み込まれます。項目の 1 つをCar_Manufacturer
クリックするCar_Type
と、選択した項目Car_Manufacturer
がサーバーから読み込まれ、新しい列に表示されます。をもう一度クリックするCar_Manufacturer
と、サーバーからデータを再度取得し、列を更新する必要があります。がCar_Type
クリックされると、このおよびのSpecific_Model
項目がサーバーから照会され、新しい列にロードされる必要があります... など。Car_Manufacturer
Car_type
データソースには次の API があります。
階層内の各要素は、アイテムの文字列キー表現です。アイテムがクリックされると、現在のアイテムの階層でこれについてコントローラーに通知する必要があります。
データソースを使用して項目がクリックされたときに、QColumnView が 1 つの項目の子を更新するようにするにはどうすればよいですか? 新しい階層レイヤーが追加または削除されたときに、これをどのように柔軟に保つことができますか?