This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KRichTextWidget

Tags: None
(comma "," separated)
User avatar
lin-unix
Registered Member
Posts
34
Karma
0
OS

KRichTextWidget

Sat Jan 15, 2011 3:08 am
Is there a way to know if a user had clicked a KRichTextWidget widget? There is no clicked() signal and using a mousePressedEvent will apply to the entire window.

I could use a mousePressedEvent anyway and filter out all the irrelevant clicks, but is there anything more efficient?

Thank you
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KRichTextWidget

Sat Jan 15, 2011 8:38 am
In this case, what are you trying to do?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
lin-unix
Registered Member
Posts
34
Karma
0
OS

Re: KRichTextWidget

Sat Jan 15, 2011 7:52 pm
I'm using KRichTextWidget in way that if a user wants to enter some data into it, it expands to a larger size.

By default it is a one line textbox, if the user clicks it, the widget resizes to a larger size.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KRichTextWidget

Sun Jan 16, 2011 1:36 am
I suggest asking on the kde-devel@kde.org mailing list regarding this. Not sure if this is possible however, things like this are usually done by adjusting size hints.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]