windows-10

How to set background color of QComboBox button?

元气小坏坏 提交于 2020-07-09 10:46:23
问题 Version/Environment: Windows 10 64 bit Qt 5.11.0 MSVC2017 64 bit I have a simple QComboBox to enable/disable a feature: QComboBox *onOffComboBox = new QComboBox(); onOffComboBox->insertItem(0, "Off"); onOffComboBox->insertItem(1, "On"); The combo box is added as a cell widget to a table: this->ui->settingsTable->setCellWidget(rowNumber, 1, onOffComboBox); Now i want to change the background color of the button but not the select items. My first approach was simply to use QWidget 's

How to set background color of QComboBox button?

。_饼干妹妹 提交于 2020-07-09 10:45:53
问题 Version/Environment: Windows 10 64 bit Qt 5.11.0 MSVC2017 64 bit I have a simple QComboBox to enable/disable a feature: QComboBox *onOffComboBox = new QComboBox(); onOffComboBox->insertItem(0, "Off"); onOffComboBox->insertItem(1, "On"); The combo box is added as a cell widget to a table: this->ui->settingsTable->setCellWidget(rowNumber, 1, onOffComboBox); Now i want to change the background color of the button but not the select items. My first approach was simply to use QWidget 's

“tcl\encoding\ascii.enc could not be extracted” for pyinstaller-frozen .exe - Windows

隐身守侯 提交于 2020-07-09 08:20:27
问题 A Python 2.7 script frozen into .exe using pyinstaller has worked successfully for a number of users on many different Windows networks for months. This morning, one group of users on one Windows network, and ONLY these three and ONLY this office (who has successfully run the program before), gets an error when they execute the .exe: tcl\encoding\ascii.enc could not be extracted! fopen: Permission denied This makes me suspect they've suddenly changed file permissions or security on their

Changing volume in pygame.mixer (almost) no effect

和自甴很熟 提交于 2020-07-09 06:15:11
问题 I'm trying to make an application in tkinter that has a number of buttons you can assign sound on and play it later. The click of the button itself only calls play() method, so loading of the sound is done beforehand. I tried making some kind of volume control with sliders (tk.Scale) and I noticed there is no noticeable difference between most volume values until I get very close to zero (take into consideration that slider resolution is 0.01 from 0.0 to 0.1). At around 0.02 I think I notice

Lombok installation in Spring Tool Suite 4 for Windows

淺唱寂寞╮ 提交于 2020-07-08 03:31:05
问题 To install Lombok on one of my spring boot project on STS 4 in Windows 10 OS, I did the following steps: Added the lombok gradle dependency to build.gradle: compile 'org.projectlombok:lombok' Then to install the jar retrieved from building the above dependancy got a lombok-1.16.16.jar. To compile the jar did a right click on the jar -> Run as Java application. Lombok Installer appeared, but couldn't detect the IDE from the drives. So manually tried searching for the .exe file of STS4 (which I

Windows Subsystem for Linux (WSL) using shared Node.js installation with Windows: Node.js npm & npx binaries not working

非 Y 不嫁゛ 提交于 2020-07-06 19:56:31
问题 I have recently moved to a Windows + WSL environment (WSL is going very good by the way). The main reason of doing this is to have a Linux environment for development and having Windows for other apps & games without having to reboot my computer (had a dual-boot setup before). In the setup process, I found most of the Windows installed binaries can be executed from WSL. So instead of duplicating installations (eg: installing java and maven in Windows in order to use Eclipse IDE and then

Run TensorFlow 2.0 on CPU without AVX

馋奶兔 提交于 2020-07-05 12:26:26
问题 I would like to install and use TensorFlow 2.0. I have a PC with Windows 10, a Geforce GTX 1080 Ti GPU and an old Intel Xeon X5660 CPU, which doesn't support AVX. Now, my problem is that there is a DLL Import error whenever I attempt to run any TensorFlow code on this machine. I know about this repository providing a solution for legacy CPUs but unfortunately I can't find any TensorFlow 2.0 packages there. Any help would be highly appreciated. Thank you. 回答1: There is a brand new wheel file

Windows 10 and Docker container logs / Docker Logging driver

痴心易碎 提交于 2020-07-05 04:20:21
问题 I'm using Windows 10 with native docker installation. I'm looking for the location where docker save the containers logs. In Linux, the Docker containers log files are in this location: /var/lib/docker/containers/container-id/container-id-json.log But where can I find it in windows 10 ? 回答1: Check first if those logs are in (as suggested here): C:\ProgramData\docker\containers\[container_ID]\[container_ID]-json.log The Docker C:\ProgramData\docker is the Root Dir reported by docker info .

How to set up working X11 forwarding on WSL2

隐身守侯 提交于 2020-07-04 06:54:06
问题 When moving from WSL1 to WSL2 many things change; apparently this applies to X11 forwarding as well. What steps do I need to make in order to use X11 forwarding with WSL2 on Windows 10 as I did with WSL1? 回答1: TL;DR: Add the following to your ~/.bashrc : export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall

Arduino IDE (Win10) crashes when I launch the program

為{幸葍}努か 提交于 2020-07-01 17:01:37
问题 My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message. C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base