pyQTで問題が発生しています。そこで、QTabWidgetを含むデザイナーとのグラフィカルインターフェイスを作成しました。関数の実行中にタブを非表示にしたり表示したりしたいのです。すべてのタブを削除して後で追加するという1つの解決策を見つけました。タブが2つしかない場合:
removedTab = self._application.getAlgorithmGUI().getWidget('tabWidget_Verification').widget(1)
self._application.getAlgorithmGUI().getWidget( 'tabWidget_Verification' ).removeTab( 1 )
そして、後でこの削除されたタブを追加しようとすると、プログラムがクラッシュします。
self._application.getAlgorithmGUI().getWidget( 'tabWidget_Verification' ).addTab(removedTab,QString.fromUtf8("TabRemoved"))
これは私のエラーメッセージです:
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
<unknown>: Fatal IO error 11 (Ressource temporairement non disponible) on X server :0.0.
助言がありますか?