Hi everyone, I am nearing completion of my space group dialog. You can see the current state on GitHub
https://github.com/AlbertDeFusco/avogadrolibs/tree/spg-rw The next thing I need to do is remove the final preview widget from my QColumnView. I believe I can subclass it as follows in spacegroupdialog.cpp. class spgColumnView : public QColumnView { public: spgColumnView(QWidget* p) : QColumnView(p) {} QAbstractItemView * createColumn ( const QModelIndex & index ) { Avogadro::QtPlugins::SpaceGroupItem *thisItem = static_cast<Avogadro::QtPlugins::SpaceGroupItem*>(index.internalPointer()); QAbstractItemView *view = 0; if(thisItem->childCount() == 0) return view; else return QColumnView::createColumn(index); } }; I then change QColumnView to spgColumnView in spacegroupdialog.ui. When I try to build it I get the following error. /Users/albert/Development/oc-clean/build/avogadrolibs/avogadro/qtplugins/crystal/ui_spacegroupdialog.h:26:10: fatal error: 'spgcolumnview.h' file not found #include <spgcolumnview.h> ^ I was using the FileComboBox class, which is a subclass of QComboBox, in qtplugins/clientserver as an example. Is there something I have to do in CMake to get this to build? I tried setting SKIP_AUTOMOC to true for these source files, but it didn’t seem to work. Thanks, Albert ------------------------------------------------------------------------------ _______________________________________________ Avogadro-devel mailing list Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel