Reply to topic

KTabWidget questions

User avatar ComaWhite
KDE Developer
Posts
100
Karma
0
OS

KTabWidget questions

Sat Jan 03, 2009 10:06 am
I noticed a few things about KTabWidget. When I set a tab with a accelerator like &Foo. It appears fine in the Qt Designer. But when I run it, it shows '&Foo' without the ''. Is there a way to have KTabWidgets automatically set accelerators for names without you doing it yourself?

I'd like to implement drag and drop with a KTabWidget. Like when a user clicks on a tab if there is more than just one. The user can click on the tab they want and detach it. And then drag it to the top or bottom of the current existing KTabWidget and it would create a new KTabWidget and you can have one on top of the other, similiar to how you would do it in MDI but without actually using MDI.


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar msoeken
Mentor
Posts
300
Karma
4
OS

RE: KTabWidget questions

Sat Jan 03, 2009 10:15 am
ComaWhite wrote:I'd like to implement drag and drop with a KTabWidget. Like when a user clicks on a tab if there is more than just one. The user can click on the tab they want and detach it. And then drag it to the top or bottom of the current existing KTabWidget and it would create a new KTabWidget and you can have one on top of the other, similiar to how you would do it in MDI but without actually using MDI.


You could use dock widgets for that. I think it would be hard to visualize the dragging of the tab pages.


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: KTabWidget questions

Sat Jan 03, 2009 10:37 am
When you detach it would look like this. Tab Layout. I think I found the problem to the accelerators by using KAcceleratorManager?


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar msoeken
Mentor
Posts
300
Karma
4
OS

RE: KTabWidget questions

Sat Jan 03, 2009 12:10 pm
Have a look at the konqueror source code and maybe these search results can help: http://www.google.com/codesearch?q=initiateDrag+KTabWidget&hl=en&btnG=Search+Code


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: KTabWidget questions

Sat Jan 03, 2009 1:00 pm
Thank you mate =]


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/

 
Reply to topic

Bookmarks



Who is online

Registered users: allanmills, Baidu [Spider], Bing [Bot], cairncrossr, Google [Bot], ipwizard, Sogou [Bot], tymond