10 June 2020
Cristián 🥑If anyone knows someone from Iran or any other blocked country, they either need to use another's country phone number, or a vpn, it really sucks...
Hi again Cristián, i just joind via a Europian phone number and i'm all good now. let me explain the issue thoroughly here. Telegram is sensored by the government itself so we will need a VPN to access it (they recently also blocked SMS from telegram servers!). This also goes for countries like Russia. But the thing i found out today is that telegram themselves have restricted people with Iranian(Not sure about Russian) phone numbers to join and interact with groups that are based in Europian regions. Thus they will need to create a new account with another number in order to be able to join these channels. (I hope Duvrov doesn't see this message, lol)
invldI think this bot should contact the user by @niсkname, so that the user notices
And the bot does not solve the spam problem, the message of the new user is still shown
Cristián 🥑So it seems like people from Iran are blocked to talk on public telegram channels.
Iranians can't join supergroups
id 1285181588I have a question, how can i align the row numbers to the right in a QTableView? By default it is shown on the left
you need to set the alignment when adding new items, or you can have the data function overloaded it.
1.
some_item = QStandardItem(value)
some_item.setTextAlignment(Qt.AlignRight)
# then you add that item to the model()
2.
def data(...):
# ...
if role == Qt.TextAlignmentRole:
return Qt.AlignRight
We have an example in PySide, to use a QSqlTableModel and display it on a tableview https://doc.qt.io/qtforpython/tutorials/qmlsqlintegration/qmlsqlintegration.html
https://wiki.qt.io/Setting_up_Gerrit Uff.
Asking for a lot of setup.
I think, I've got everything now…
@cmaureir Were would I need to start, when I want to check, which C++ examples (of the wiki) need porting to Python ones?
I fail to see Python code …
So much .h and .xml all over the place …
(talking about pyside2)
Cristián 🥑We have an example in PySide, to use a QSqlTableModel and display it on a tableview https://doc.qt.io/qtforpython/tutorials/qmlsqlintegration/qmlsqlintegration.html
Thank you for you explanation, i didn't clearly explain what i really wanted. setLayoutDirection() was what i was looking for. I didn't know such thing exists 😅