Похожие чаты

Hi guys. does anybody know any group about PYQT? or we

can ask here?

2 ответов

10 просмотров

i'm sure you can ask here

Yousef- Автор вопроса
ⒺⓃⒹⓄⒼⒺⓃ
i'm sure you can ask here

thank you I have tableview as follows: self.table= QTableView() self.model =QSqlRelationalTableModel(self) i have defined two columns as a foreign key as follows: self.model.setRelation(1, QSqlRelation("Names", "nameOfCm", "nameOfCm")) self.model.setRelation(2, QSqlRelation("Types", "type_IDs", "typeOfCm")) in column No 1 i have items like IC, Transistor, etc. in column No 2 i have items like timer, op_amp, BJT, IGBT,etc. items in column 2 are subset of items in column 1 for example op_amp and timer are subset of IC. BJT and IGBT are subset of transistor. by using above two command a combobox appears in column no 1 and no 2 and you can choose from there. but i want to be in such a way that column 2 only shows the relevant subset of item chosen in column 1. now it shows all items regardless of what you have chosen in column 1. the command below can filter the results but i don't know how i can tell the filter what i have chosen in previous column: self.model.relationModel(2).setFilter("type_IDs like 'D%'") Sorry for Long Question😅😅

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта