View Issue Details

IDProjectCategoryView StatusLast Update
0000404FreeCADFeaturepublic2011-09-16 04:23
Reporterlparry91 Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionwon't fix 
Product Versiontrunk 
Summary0000404: Implement a custom Qlistwidget widget in Mods/Sketcher/Gui/TaskSketcherGeneral.cpp
DescriptionCurrently the Qlistwidget is created using Qt Designer. I'd like to create a custom class based on Qlistwidget and use this in TaskSketcherContrains.ui

It would allow more efficient multiple selection using methods which require QModelIndex. It may also allow customisation and improve efficiency when working with a larger number of item entries....
 

Note: This is the same with other Qlistwidgets in Freecad.
Additional InformationI'll try implementing this, just asking if its alright.
TagsNo tags attached.
FreeCAD Information

Activities

Jriegel

2011-07-20 14:45

administrator   ~0000931

I see no problem to use a other List widget. You can change the .ui code by
hand if you wish.

Or what exactly is the feature request about. What do you want us to do!?

unauthenticated

2011-07-21 18:11

viewer   ~0000936

I'll implement this when I can. I'll use developer forum next time for developer specific stuff. Thanks!

wmayer

2011-07-28 12:11

administrator   ~0000953

To have multi-selection enabled you can call:
ui->listWidgetConstraints->setSelectionMode(QAbstractItemView::ExtendedSelection);

I don't really see a need to have a special list widget here. Usually when you work with QModelIndex and want to have some extensions here and there you subclass QItemDelegate or QAbstractItemDelegate, QStandardItemModel or QAbstractItemModel

Jriegel

2011-09-16 04:23

administrator   ~0001080

Since Luke volunteered to implement its own feature request ;)

Issue History

Date Modified Username Field Change
2011-07-20 05:16 lparry91 New Issue
2011-07-20 14:45 Jriegel Note Added: 0000931
2011-07-21 18:11 unauthenticated Note Added: 0000936
2011-07-28 12:11 wmayer Note Added: 0000953
2011-09-16 04:23 Jriegel Note Added: 0001080
2011-09-16 04:23 Jriegel Status new => closed
2011-09-16 04:23 Jriegel Resolution open => won't fix