[Development] Notes from the QWidget session

Иван Комиссаров abbapoh at gmail.com
Thu Jun 28 10:03:16 CEST 2012


Btw, it would be great if someone will implement multi-line label. Right
now, it is impossible to wrap text in a QLabel using non-whitespace
symbols. For example, i want to wrap file path using '/' as a wrapper.
However, i prefer not to deal with text(

I took a small look into a KDE classes.

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.

Plus widgets i mentioned earlier.

Should i create a playground project, or i can start adding widgets as a
separate commits on top of current master (yes, qt5 is frozen, but i will
simply rebase commits when there will be 5.1 branch)?

2012/6/28 Thiago Macieira <thiago.macieira at intel.com>

> On quinta-feira, 28 de junho de 2012 09.07.55, Thorbjørn Martsum wrote:
> > * A multiline QLineEdit
>
> That's called a QTextEdit
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
>     Intel Sweden AB - Registration Number: 556189-6027
>     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120628/a9dc194e/attachment.html>


More information about the Development mailing list