in QTextEdit ,can't respond to mouse click events - qtextedit

I want to use mouseDoubleClickEvent,but it does not work
this is my code:
textEdit->setMouseTracking(true);
who can help me ? thank you sorry,my English is so bed

Related

How is this popup message created / programmed?

I recently noticed the following popup message ("6 occurrences replaced") in Qt Creator (3.4.2).
I like its style and want to use it in my own application. But how is it done? Is this a particular widget or what else? Can someone point me in the right direction.
You could create your own window with round corners like that with text in the middle paid show it when you want too make the window so it takes a parameter text and you can add different text each time and show

How to tell Users that a Tooltip lies behind a Text/Textbox/Image, etc.?

In my U.I. I have a normal text headline that covers a block of checkboxes but without further information I'm scared of Users not knowing what to do with the window. So my idea was to put a tooltip in the headline to give Users information about the funktion of my window. But how do i make clear that there actually is a tooltip behind that headline? I dont think people would normally hover over the headline so they would never get the information. Is there some sort of specific system to imply that there will be a tooltip over a control or text (like some special cursor)?
You can add a small info icon next to the header, so the user will know that there is more information hidden.
Hope that this idea help you!
When the form opens, you could move the mouse to the headline.
Or add a little something to attract the attention like a button or image and add the same tooltip there..

Museclick and mousemove event in batch

I am wondering how to get the mousemove and mouseclick events in batch. Can anybody help me?
Thx for advice!
...or maybe in bash...
The simple answer is no, you can't.
To point you in the right direction look at global keyboard and mouse hooks for C/C++/C#.
There are plenty of discussions on the web about these.

Custom windows hint on buttons in Delphi

I would like to make a custom formatted Hint for some buttons in my application.
I use to make a tadvtoolpanel and display it on the onmousemove event, but it is not very clean.
Is there a button (from TMS component for example) which enables this directly ?
I just want the user to have a quick resume windows on the mousemove on it.
Hope i manage to explain clearly.
Thanks
Gwenael
Use TAdvOfficeHint from TMS and just drop it on your mainform. All the TMS buttons have an OfficeHint property that lets you specify the title, text and icon of the hint. If no office hint is specified, the normal Hint property is used.

Xlib - focus mode

I'm writing a simple window manager (using xlib) for school and I have one problem. I really don't like the default X11 focus mode: 'sloppy focus' (the focus follows the mouse pointer) so I want to change that behavior.
I'm overriding the EnterNotify event but I still have sloppy focus. Can someone please show me the right direction?
Thanks
I found the solution. Just use XSetInputFocus() to set the focus to any window, and the sloppy focus disappears.

Resources