key modifier Ctrl breaks Drag and Drop in Qt - c++

I am following this example given by Qt to implement DnD. It currently drags and drops until I press a modifier key like Ctrl or Shift.
The weird part is when I try to debug using a break point in VS 2010 it starts to work when I resume until a key modifier is pressed again.
What am I doing wrong and how can I stop modifier keys from breaking DnD?

The issue I have has nothing to do with my code. It seems the same issue exist with the drag and drop demo provided by Qt 4.8.2.

Related

Qt holds Ctrl to drag software elements into the File Explorer, but the File Explorer does not accept them

I can receive when I don't press Ctrl, I need to implement Ctrl pressed for copy and Ctrl not pressed for cut (move), how can I achieve this?
I have solved this problem, the QDrag::exec() function has some parameters to choose from, I rewrite it as exec(Qt::ActionMask, Qt::MoveAction); and it solves the problem perfectly.

Coded UI Test winforms menu item identification wrong

I use the assertion function to identify controls. When I use the assertion function for the Coded UI Test (Ctrl + Shift + I) the menu items in my .NET application running on Windows 10 are always recogniced at the wrong position. I use Visual Studio 2017 Enterprise (version 15.5.7).
My cursor was at the "Öffnen" menu item but the MSAA thinks it is the "Speichern" menu item. It seems shifted for one menu entry.
For other application the control identification works fine. It seems a problem with this particular application.
What could possibly be wrong in using Coded UI Test Builder?
Update
I also tried to increase the MaxLevelsForItemContainer from the default value of 2 to 5 in the CodedUITestBuilder.exe.config without success.
The SearchConfiguration.NextSibling() method didn't work either.
It is probably an issue with the Spiechern button masking the Öffnen button -
atleast so far as the test builder sees it.
Try navigating to the Öffnen button through usage of the parent child navigator in the test builder (the button button 4 arrows around a blue box, next to Retry and Add Assertion), and then identify with the NextSibling() method. This would look like:
// Clicks Öffnen - Change NextSibling()to be whatever filial relation is required
var offnen = new WpfButton();
offnen = offnen.SearchProperties.Add(WpfButton.PropertyNames.Name, "Spiechern").NextSibling();
offnen.Click();
If that doesn't work set your tests up to use the identification of the Spiechern button, and then alter the portion that needs to click on the Öffnen button to click slightly above above the Spiechern button. That would look like:
// Clicks Öffnen - Change xOffset and yOffset to whatever is required to click Öffnen
var spiechern = new WpfButton();
spiechern= spiechern.SearchProperties.Add(WpfButton.PropertyNames.Name, "Spiechern");
Mouse.Click(spiechern, new Point(xOffset, yOffset));
I was able to do what I wanted by using the menu keyboard shortcuts and navigating through the menu and record this.
Possible solution in this case:
use keyboard shortcuts
After an Visual Studio 2017 Enterprise update from version 15.5.7 to 15.6.1 the menu item was recognized correctly. I'm not aware of any other change I did on my system but since the update it seems to work.
Solution:
Update Visual Studio 2017

I must to press spacebar twice to write some code in xCode

I just started to use xCode to code C++ recently and found this issue very annoying.
Whenever I start to code something, xCode underlined that and I have to press the spacebar once just to make it disappears and twice for the space letter.
Example:
Sorry for my English, I'm new at this, please help.
Whenever I start to code something, xCode underlined that and I have to press the spacebar once just to make it disappears and twice for the space letter.
You're using a keyboard input method like Telex or Simple Telex, right? With either of those methods enabled I get behavior you describe even in Safari. If you switch to a standard US keyboard, for example, you'll find that the behavior goes away in Xcode and everywhere else.
i found a solution, just change the keyboard layout and it's perfect

Automatic Code completion in Eclipse 8.4?

I recently installed Eclipse Luna(for win7) for developing C++ programs. The problem is the code completion only shows suggestions when I press Ctrl + Space button. I searched on the internet, but the only solution I was able to find is for old Eclipse(Java) version 3.4 or something. In that you have some text feilds in which you can enter the characters for auto-completion. But in 8.4 there are no such text-fields. Do they have a plugin for this? Please Help me
Yes they've changed the behavior a bit. The auto completion list pops up at entering ., -> or ::, and as you mentioned with CTRL + Space
If the list popped up, press TAB once to get inside the popup selection list, and go up down with the arrow keys. Press enter to select one.
If the entered symbol is specified enough, to select a proposal, hitting Space after the dialog popped up, will autocomplete though.

Emulating alt-tab keys causes the menu to get stuck on screen

I need to make a custom hotkey for the alt-tab function. I'm doing this with SendInput by sending the corresponding keys, and it works fine.
However, if a hotkey already includes the alt key, the program only needs to press and release tab; but doing so causes the alt-tab menu to get stuck on screen even, and the only way to make it go away is to close my program. How could that possibly happen, and what does closing my program have to do with the menu disappearing?
On the other hand, sending (alt down)(tab down)(tab up)(alt up) keys regardless of whether alt is already down works in all cases, but I can't rely on this behavior for other reasons.
I'm using WinXP if that helps, I haven't tried it on the Win7 computer yet.
Had a similar problem caused by doing PostMessage WM_KEYDOWN, VK_TAB, in an event triggered by operator clicking ALT-N to cancel an action. The ALT key was thus still down when the tab was sent. Since our code never sends a WM_KEYUP, it must have confused Win XP. Left the alt-tab menu on the screen until the application exited.
I don't know if this related, but Alt+Ctrl+Tab causes the menu to stuck, just like if Alt would stick when press Alt+Tab. So may be you are sending Ctrl signal somehow.