Porting KWidgets to Qt5

Иван Комиссаров abbapoh at gmail.com
Thu Jun 28 11:30:20 UTC 2012


Hello. On a qt5 mailing lists we've discussed possibility of adding come
kde widgets to Qt5.

I made a list of widgets i can try to add myself:

1)
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKIntSpinBox.html"base"
property can be added to QSpinBox.
2)
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKFontRequester.htmlcan
be added as a separate qtwidget instead of FontButton mentioned
eariler
(i personally prefer widget).
3)
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKColorPatch.htmli
prefer QtCreator's QtColorButton here (it has some API, at least)
4)
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKDualAction.htmlnice,
but i don't like API (duplicated active/inactive methods plus QAction
own setText/Icon/etc methods). Need more discussion here
5) http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKLineEdit.htmli
won't deal with QLineEdit, but it needs following features - clear
button, custom menus (Creator's FancyLineEdit functionality) and ability to
draw placeholder text even if QLineEdit has focus
6) http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKTabBar.htmli
would like to add mouseMiddleClick(int index) signal,
mouseDoubleClick(int index), mouseDoubleClick() or newTabRequest() signal
(i prefer first name - more flexible) to QTabBar and QTabWidget. Reasoning
- people need to subclass QTabBar/set event filter to track double clicking
on an empty space. Also i would like to see property that allows to set if
QTabBar should switch tabs while user drags mimedata over it (common
FileManager/browser functionality). I would like to see prop for autohiding
tabbar when there's only 1 tab. Same is for close button - most tabbed apps
do not allow to close last tab.

Also, i have some widgets that can be useful - QtCreator's QtColorButton
(KColorPatch analog), Arora's ModelMenu/ModelToolBar (kde should have some
analogs), WindowsMenu (menu with list of top-level windows and actions for
minimizing/maximizing.closing of current window).

Does anyone have any thoughts about what widgets can be added?

Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20120628/a2e170da/attachment.html>


More information about the Kde-frameworks-devel mailing list