ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

18 June 2020
2020-06-18×
18 June 2020
S
how to make documentation PySide and embbed on QtCreator documentation? please help me. thankyou
So far, the release date is not defined, but it should be August
C
you can always cherry pick that change, and build PySide locally to use it
C
The patch will provide the same information to the Qt Assistant
C
then you generate the HTML files locally, that you can browse
I think it only has Qt docs
C
an intern experimented a bit with that tool in the past
C
I couldn't find where are the available documentaions are located, for example, the Qt ones
C
oh :O right, it's not on the 'available' list
F
I think the list only shows the official sets, not those user contributed ones
keep getting "Invalid docset feed!" when trying to do imports xD
it works if you download by hand
then you untar that file inside ~/.local/share/Zeal/Zeal/docsets/
C
Фотография
click to show
S
o ya... i have a problem about the driver mysql for python. i already have make driver qsqlmysql for Qt5.14.2 on C++, but for python that driver is not respon. so, can anybody give some info about the building driver qsqlmysql for python? thank you..
I don't know what's a 'driver qsqlmysql', and what does not respond? the query to a server?
C
maybe you can share some code snippets or error messages? (please use external services like pastebin.com to share lengthy code)
S
i am using the QSqlDatabase.addDatabase('QMYSQL'), (this case i already success build driver mysql from Qt/C++ and mysql), but when try that code "QSqlDatabase.addDatabase('QMYSQL') on pyside2", is nothing happen. compiler said: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7 So, how to fix that problem. thank you so much sir..
F
maybe export QT_DEBUG_PLUGINS=1 gives you some debug information why the QMYSQL driver is apparently available but not loaded correctly
F
it's an environment variable you set before running your application (on Windows I think it's "set" rather than "export")
before executing your code
C
are you on linux? macOS? windows?
F
I guess you could do os.environ['QT_DEBUG_PLUGINS'] = '1' in Python before creating the QApplication object if that's easier
on cmd or any terminal you use
C
maybe you are using an IDE @stendysakur ? that's why you don't know about the command line? if so, which one?
F
or open a terminal and run it from there instead
C
inside the main python file you are executing, you could try doing a: import os os.environ["QT_DEBUG_PLUGINS"] = 1 as the first lines of your file
I
Guys, I'm trying to keep appending new lines to my QTextEdit based on some conditions (using append() method of the qtextedit class). How can i set a color to the strings i append each time to the text edit box?
your_text_edit.setHtml('<font color="red">something red</font><br/><font color="blue">something blue</font>')
I
I see, so i will need the font element to enter a colored text, how about "style" attribute (which i think is css)?
C
only one for the whole QTextEdit
A
Well … I haven't tried, but from a HTML+CSS perspective this sounds like it should work: style = '<style>.red{color:red;} .blue{color:blue;}</style>' html='<span class="red">something red</span><br /><span class="blue">something blue</span>' your_text_edit.setHTML(style + html)
Calendar: June 2020
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog