How keep a QWidget always on top? - qwidget

I have two buttons on my QMainWindow. One to btnShowKb and another btnHideKb. When i press btnShowKb it shows an QWidget. I want this QWidget always to be on top of all windows till I press btnHideKb. When its on top, I want both QWidget and QMainWidget be activated.
Can anybody suggest on this?

Setting the setWindowFlags() with Qt::WindowStaysOnTopHint is meant to help.
https://doc.qt.io/archives/qt-4.7/qt.html#WindowType-enum
https://doc.qt.io/archives/qt-4.7/widgets-windowflags.html

Nokia was so yesterday...
New link:
http://doc.qt.io/qt-5/qtwidgets-widgets-windowflags-example.html
and the line of code you might be looking for:
mainMenu->setWindowFlags(Qt::WindowStaysOnTopHint);

Related

Visual Studio Code intellisense showing one suggestion at any time

Normally when I used to type in my VSCode editor, the intellisense showed all the possible suggestions for the entered query.
However, now as I type, only one suggestion is shown that best matches the query.
For instance, when I type in b, the intellisense just shows a suggestion for the HTML <b> element — not a list of suggestions including tags such as <button>.
Is there any way to change this? I have searched a lot of the net but couldn't find any sort of help.
VS Code 1.51 made the list of suggestions resizable so it's possible your suggest widget is simply shrunken down to be a single line high.
To fix this, trigger suggestions and then click and drag at the bottom edge of the suggest widget to increase the number of visible suggestions.
Note that you can always use the arrow keys to navigate through suggestions, even if only one suggestion is visible. Use this to check if the widget is simply too small or if there really is only one suggestion
I wasted time on this too... (bummed)
Solution:
Open: Command Palette
Type: ">Reset Suggest Widget Size"
Select: 'click' or [ENTER]
Opinion:
Wish I saw Matt Bierner's answer sooner.
(The suggestion window can be resized by dragging its borders with your cursor.)

VB.net Click on a certain coordinate

i'm making a windows application that would open a program and click on certain coordinates, first i need to know how to get a coordinate, which i already know, but how do I let my mouse click on a certain position? Simply it would be somthing like mouse.Click(coordinate). I don't know, could anyone help?
Regards
I tried putting this as a comment, but SO wouldn't put the comment up after I typed it, so I had to put what I had as an answer.
Here are two links that might have what you're looking to do: http://social.msdn.microsoft.com/Forums/vstudio/en-US/7b68f005-1d09-4085-b236-b05797df3bf0/how-to-make-the-mouse-click
and
http://social.msdn.microsoft.com/Forums/vstudio/en-US/a2518c35-ed77-42b3-a9c4-705238d714c2/mouse-click
And if you just want to click a button, you could use
button.Performclick()
But I don't think that there's any simple way (such as Mouse.Click()) to make the mouse click anywhere.
HTH

How do i take a screenshot of an autocomplete field?

Exactly the question in the title;
I would like to take a screenshot of this:
Or at least this kind of object. It doesn't seem possible in any other program either as far as i'm aware, the drop down menu goes away when i try to screenshot. I can't do it with either just pressing the screenshot key, or using the image magick import command bound to a keyboard shortcut. I just end up with this:
Is there any way to do this?
Will
Assuming you are running Windows, SnagIt should be able to handle this just fine: http://www.techsmith.com/snagit.html

How to disable autocompleet intellisence when pressing spacebar in vb.net

While creating test in vb.net i found it pretty annoying when you start typing and autocompleet changes a class to something similar looking even it is a class you don't want.
Image to illustrate :
In the picture you can see I am trying to setup a controller (this controller does not exist at the moment) so when i press the spacebar i will get DienstControllerFacts.
How do you disable this sort of auto-correction?
I can't see your image, but I think this gives you some keyboard shortcuts for dealing with your issue, and this shows you how to modify the settings.
Did you tried to selecting Common tab instead of All tab in the intellisense window?

Gorm main window does not accept drag-and-drop

When I try to add any widget (label, button ...) to main application Window in Gorm, the Window does not accept the widget. I try to drag and drop but nothing wants to 'stick'. When I select and left click on button widget in palette window the curson changes to '2 green squares'. When I start dragging it changes to '2 black squares'.
Another problem is that the 'Document' window opens really long window (stretches about 5 times the width of my screen) but apart from NSOwner, NSFirst, My Window and NSMenu icons it is empty.
Any ideas what is wrong?
I'm running linux with fluxbox-1.1.1
I've compiled gorm-1.2.8 and gnustep-startup-0.22.0 that contains:
ffcall-1.10
gnustep-back-0.16.0
gnustep-base-1.18.0
gnustep-gui-0.16.0
gnustep-make-2.0.7
gnustep-objc-1.6.0
libffi-3.0.1
Any help is appreciated.
Thanks
Maybe there's a compatibility issue or some conflict between existing run time libraries and the new ones that I'm trying to add. Doesn't seems like there's a straightforward answer for this. Nevermind, I gave up trying atm. Maybe later when I setup another Linux box I give it a try - I'll stay with Mac OS X for now :)