mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			646 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			646 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/** \ingroup gui
 | 
						|
 * Widget allowing to edit a QVariantList, using a table.
 | 
						|
 * @note added in QGIS 3.0
 | 
						|
 */
 | 
						|
class QgsListWidget : public QgsTableWidgetBase
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgslistwidget.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    /**
 | 
						|
     * Constructor.
 | 
						|
     */
 | 
						|
    explicit QgsListWidget( QVariant::Type subType, QWidget *parent = 0 );
 | 
						|
 | 
						|
    /**
 | 
						|
     * Set the initial value of the widget.
 | 
						|
     */
 | 
						|
    void setList( const QVariantList &list );
 | 
						|
 | 
						|
    /**
 | 
						|
     * Get the edit value.
 | 
						|
     * @return the QVariantList
 | 
						|
     */
 | 
						|
    QVariantList list() const;
 | 
						|
 | 
						|
    /**
 | 
						|
     * Check the content is valid
 | 
						|
     * @return true if valid
 | 
						|
     */
 | 
						|
    bool valid() const;
 | 
						|
};
 |