windows-10

improper scaling of Qt Desktop application in windows 10

被刻印的时光 ゝ 提交于 2019-12-04 05:00:02
I'm writing a simple Qt (Widgets) Gui application for windows 10. I'm using the 5.6.0 beta version of Qt. The problem I'm having is that it isn't scaling right to the screen of my surfacebook at all: It's a bit hard to tell because SO scales the image, but notice how small the dock widget title bar controls are relative to the window title bar controls. This link from Qt talks about scaling, but it's mostly focuses on qml/qtQuick and mobile applications in general, and additionally seems to imply that in a desktop QtWidgets application, QPainter will automatically determine the proper scaling,

Get current version OS in Windows 10 in C#

99封情书 提交于 2019-12-04 04:04:21
问题 I Use C#. I try to get the current version of the OS: OperatingSystem os = Environment.OSVersion; Version ver = os.Version; I get on the Windows 10 : 6.2 . But 6.2 is Windows 8 or WindowsServer 2012 (Detect Windows version in .net) I found the following solution (How can I detect if my app is running on Windows 10). static bool IsWindows10() { var reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); string productName = (string)reg.GetValue("ProductName");

VB6 Application on Windows 7 Cannot Access Mapped Drives

谁都会走 提交于 2019-12-04 03:51:59
I have a VB6 application which links to several POS terminals from a Windows 7 32-bit machine. The POS terminals are mapped to the Windows 7 machine and I can access the POS terminals from the Windows 7 machine from Explorer or via the cmdline/shell. The application has been updated to ADO 2.8 and all other controls and components I no longer had source code for have been re-written. After a few annoying hiccups, I got the application to recompile on the Windows 7 computer without errors. Now come the problems. The VB6 application cannot see or navigate to any mapped drives! I have tried

Could not find SDK “Microsoft.VCLibs, Version=14.0” on Windows 10

回眸只為那壹抹淺笑 提交于 2019-12-04 03:18:46
I have just installed windows 10 and wanted to give a try on windows universal desktop apps. With the installation of Visual Studio community version there were no templates for this kind of project, and I installed it manually via VS. In the process of installation there were three things installing (as far as i remember it was some SDK version). Then I created a simple project under Visual C# -> Windows -> Blank App (Universal Windows), and when I build the app its says: Could not find SDK "Microsoft.VCLibs, Version=14.0". I already tried to search on google but only two results come at this

Perl Scripts on Windows 10 run from Explorer but not Command Prompt

旧时模样 提交于 2019-12-04 03:17:50
问题 I've installed ActiveState Perl on my new Windows 10 PC. I've installed the same exact version of Perl on several of my own PC's, and it's installed on 100's of other users' PC's in my company. Same exact install, created by me. This is the first time trying this on Windows 10. The basic actions of double-clicking a Perl script (*.pl) in Explorer cause a console window to open and Perl to run the script. Also, in Windows Command Prompt, I can type perl.exe script.pl , and the script runs fine

Visual Studio 2015 Community Edition Installation Stuck In Windows 10

我只是一个虾纸丫 提交于 2019-12-04 02:59:51
问题 I am trying to install VS 2015 in Windows 10 and the installation is stuck at the "Applying Microsoft Visual Studio 2015 x86 Debug Runtime - 14.0.23026" section for around 4 hours. The Acquiring section is showing 100% though. Terminated the same to find the below details in a log file: [2015-08-02T16:48:28]i305: Verified acquired payload: VSSetupUtility_Complete_vs_community at path: C:\ProgramData\Package Cache\.unverified\VSSetupUtility_Complete_vs_community, moving to: C:\ProgramData

Is it possible to build UWP app in Mac?

拥有回忆 提交于 2019-12-04 02:57:34
Is it possible to build the UWP app in the Mac platform? Like I have Mac PC and the new Visual Studio Code can use to write codes, but is it possible to install the Emulators and SDK for Windows 10 / UWP? I want to build apps for Windows platform. Unfortunately currently there is no option to use UWP dev tools on the MAC even with Visual Studio Code. The same is for Linux. 来源: https://stackoverflow.com/questions/39243485/is-it-possible-to-build-uwp-app-in-mac

`PrintQueue.AddJob` does not finish

依然范特西╮ 提交于 2019-12-04 02:45:07
I tried following code on some PCs. using (var lps = new LocalPrintServer()) using(var pqueue = lps.GetPrintQueue("PRINTER-NAME")) { pqueue.AddJob("job-name", @"C:\example.xps", false, pticket); } On only one PC, it did not work. The application froze at AddJob method. It never finished even after waiting for long time. There are no exceptions. The PC where this problem occurred is Windows10 and applied CreatorsUpdate. Other PCs are Windows7, Windows8.1 and Windows10 applied AnniversaryUpdate. Is this problem a bug of CreatorsUpdate? Supplement: The PC which has CreatorsUpdate can print xps

Installing docker on azure virtual machine windows 10

本小妞迷上赌 提交于 2019-12-04 02:02:15
I am getting an error upon installing docker on azure virtual machine. m/c configuration: azure vm, windows 10 enterprise, Intel 2.4 GHz, 7 GB RAM, 64-bit operating system, x64-based processor. I went through a few blogs and they asked me to enable nested virtualization on azure vm as follows. Set-VMProcessor -VMName MobyLinuxVM -ExposeVirtualizationExtensions $true But this also didn't help and the virtual m/c MobyLinuxVM failed to start. I have installed Hyper-V and Container components from windows features. But the error shows "because one of the Hyper-V components is not running" whereas

Can I embed a windows store app inside a classic windows application?

二次信任 提交于 2019-12-04 02:02:03
问题 I would like to embed a universal windows app into a classic windows application on windows 10. Is this possible? 回答1: The short answer is no. However... depending on what you're trying to do, the information below may help you. If you just want to get the look and feel of a desktop application, you should be aware that Windows 10 apps (unlike Windows 8 apps) run in non-fullscreen mode by default, and can be resized. Desktop apps in Windows 10 have top-right icons (min/max/resize) that look