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

How make links on a form ?

Tags: None
(comma "," separated)
ptijoz
Registered Member
Posts
43
Karma
0
OS

How make links on a form ?

Mon Apr 11, 2022 8:04 am
Hello
is it possible to make dynamic links on the data of a table in a form?
Cheers

example below

Image
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: How make links on a form ?

Mon Aug 01, 2022 7:51 pm
Hi
Use the button, and its Hyperlink property. Buttons can also have data field assignments, this allows to bind with database if you need that.
You can set button to Flat in order to look like a link. Use RemoteHyperlink = True to allow opening remote sites in a browser. For security this is not the default.

Enjoy your experiments!
J.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: How make links on a form ?

Fri Aug 05, 2022 6:42 pm
Good evening
Your method works perfectly and I thank you very much!
I did not find how to put the text in blue for example.
best regards
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: How make links on a form ?

Fri Aug 05, 2022 6:45 pm
Hi. Use the Foreground color property of the button.
I am glad things work!
J


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: How make links on a form ?

Fri Aug 05, 2022 7:56 pm
I cannot change the color of text
Image
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: How make links on a form ?

Fri Aug 05, 2022 9:21 pm
It's a glitch then caused by setting the Flat to true. You can use a workaround. Set the Style Sheet property to:

color:blue

Hope it helps.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
ptijoz
Registered Member
Posts
43
Karma
0
OS

Re: How make links on a form ?

Sat Aug 06, 2022 7:54 am
Thank you very much; it works perfectly. :)
I put this code for convenience.
Code: Select all
  font-size: 18px; color:blue; text-decoration: underline; text-align: left;

I think we have to display the full url with the https:// otherwise it won't work...

Regards
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: How make links on a form ?

Sat Aug 06, 2022 8:22 am
So I'd like to ask you for reporting the link issue on bugs.kde.org --> https://community.kde.org/Kexi/File_a_bug_or_wish
It should be eventually fixed since using the workaround is annoying in the long run.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
ptijoz
Registered Member
Posts
43
Karma
0
OS


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]