Porting KWidgets to Qt5

Christoph Feck christoph at maxiom.de
Thu Jun 28 23:27:19 UTC 2012


On Thursday 28 June 2012 13:30:20 Иван Комиссаров wrote:
> 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/classKIntSpin
> Box.html"base" property can be added to QSpinBox.
> 2)
> http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKFontReq
> uester.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/classKColorPa
> tch.htmli prefer QtCreator's QtColorButton here (it has some API,
> at least) 4)

You want KColorButton, not KColorPatch. The latter is only used to 
display the selected color in the color dialog, but also allows drag 
and drop.

> http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKDualAct
> ion.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/classKLineEd
> it.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

Christoph Feck (kdepepo)
KDE Quality Team


More information about the Kde-frameworks-devel mailing list