QT file chooser filter bug? - qt

Since upgrading from Debian 10 to Debian 11, all of the computers in my lab now have a bug when opening files in most programs (inkscape, xfburn, audacity, etc.). I believe this is the QT file chooser/picker being presented by all of these different programs, but I may be wrong in that assumption.
When I select File->Open, then start typing to filter down the files, the filter applies, then the file list goes blank. Each time I type the next letter, the filtered files show for a split second before disappearing again.
Are others dealing with this? Any ideas on a fix?
5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux, XFCE

Related

Can't select multiple cells in Jupyterlab notebook

I cannot select multiple (adjacent) cells (in order to e.g. delete them)
I have tried
Shift +up/down arrows
Shift + J/K
Both of the above in both Edit mode and Command mode
Running a javascript keyboard tester to make sure shift J/K not being intercepted
Windows on-screen keyboard for shift +up/down/J/K
Online searching for same symptoms
Question: any ideas why this is happening and how to resolve it or how to perform a more detailed investigation/diagnosis?
Environment: Windows-10 Home 64-bit 20H2; Jupyterlab 3.0.5; Python 3.8.6 | packaged by conda-forge | (default, Dec 26 2020, 04:30:06) [MSC v.1916 64 bit (AMD64)]; IPython 7.18.1
Browsers tested Chrome, Opera, Edge (Chrome has security extensions, all disabled/allowing localhost, but Edge is vanilla and behaved exactly the same)
Starting jupyterlab from Anaconda Navigator launcher
The problem is not with selection per se, as all selection actions failed (e.g. select all cells from menu), but rather with the display
The CSS value for var(--jp-notebook-multiselected-color) was #e3f2fd - invisibly faint on my monitor; it was declared in the index.css file as "md-blue-50" (Google's Material Design blue) but the colour displayed did not match an online sample of md-blue-50 (so I guess the value for md-blue-50 declared elsewhere was not found).
The issue was identified by switching to to dark mode, where selection highlighting was clearly present.
Solution (because I can't find the source of the md-blue-50 value) was simply to use Stylebot to override the background color - in fact, using Stylebot scoped to localhost is better for me because I don't have to fix the css in every installation of jupyterlab in every Python environment.
try to open the jupyter-lab from the cmd, type this command :
jupyter notebook
it will open the same lab you can open via anaconda. then all of shortcuts will work as usual

qt-linguist- Merging .ts files

I am translating the GUI of QGIS desktop software.
The current developing version is on transifex platform from which it can be extracted the corresponding .ts file.
the older versions of QGIS are archived on github.
I'd like to insert the missing strings translated in the newer version in the older version. Also some strings have been corrected in the new version and I'd like to replace them in the older.
I used lconvert in this form:
lconvert -i 2.18.ts 2.99.ts -o total.ts
But QT Linguist warns that in total.ts there are duplicated strings.
Is it possible to insert in the older version (2.18) only the strings that are the same from the newer (2.99)?
I ran three years ago with the ts-tools from Qt4 into the same problem.
The manual says that the call of lconvert (just like you laid it out) will merge the content (means: the translations from two sources) into a new file. And I expected "merge" to work like "make a superset out of both". But it did not.
I wrote myself a bash-script to merge it in a way I want to. Will try to find the file this evening.
(I know, right now the answer is - beside confirming the error - not helpful.)

How to set encoding for Jupyter Notebook in R?

Simple question, but I can't find an answer for R. I found it for Python, but I didn't test it.
When I put to input line of the notebook: setOption(encoding = "Windows-1250") nothing exactly happens. I know (from Python review) I should save it to environment somehow, but how? I created Jupyter Notebook (my first time) from Anaconda by launching button, previously installed all dependencies. Everything's ok (Windows 7).
It's a problem with plotting my locale characters in plots. And maybe, I should encode my characters directly to unicode notation? Like: u003d? But it's time consuming. Any suggestions?

Qt: Different tableWidget member names on workstations

I am using Qt on two ubuntu machines and am copying the source code from time to time between them. I found a really annoying problem when doing that and I can't figure out why this happens.I am using a table Widget to display some data and want to stretch the horizontal header to fit the content length. To do that I use the following line:
ui->tableWidget->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents);
This works just fine.
I have a few of this codelines.
However, when I now copy over my source code to the other PC to work on it, I get the following compile error:
'class QHeaderView' has no member named 'setResizeMode'
Renaming 'setResizeMode' to 'setSectionResizeMode' will work just fine to fix that problem, but if I now copy the source code back to the first PC, it tells me:
'class QHeaderView' has no member named 'setSectionResizeMode'
...and I have to rename it to 'setResizeMode' again, to continue working.
I checked the Qt version on both PCs and they are both "Qt Creator 2.7.0" based on "Qt 5.0.1 (32 bit)".
Also the systems are up to date.
The only difference is, that I am using one of them in english system language, the other one in german...but I don't see how that would affect Qt's member declaration. o.O
Anyone knows what the problem is?
The constant renaming can get annoying over time.
it may be that the QT header versions don't match up
double check the QT_VERSION_STR in QtCore/qglobal.h
for a quick check if you are too lazy add a #pragma message("QT version: " QT_VERSION_STR) to the code to have the compiler output it while compiling

Student's computer using Chinese locale, inherited from Windows 7

A student in my chemometrics course installed R on Windows 7. Apparently, R picked up something from his computer automatically, so R operates in Chinese (yes, he is Chinese). He's trying to change it back to English (important because scripts must be turned into me in English!).
He sent me the 1st screen shot below. The 2nd screen shot shows my suggestion to change the locale. R reports (in Chinese) that it can't change it.
Any suggestions? Thanks.
Check sessionInfo()
try:
Sys.setlocale("LC_ALL", "English")
Run R with the added command line parameter LANGUAGE=en OR delete the share/locale folder:
http://notepad.patheticcockroach.com/412/how-to-change-language-in-r/
Windows likely has a way to set the locale information passed to a program, though I don't know how offhand. You could try setting it there, outside of R.

Resources