Ярлыки

четверг, 30 августа 2018 г.

QtCreator - missing main menu

To open settings window in QtCreator
  • 1. Switch to debug mode
  • 2. Right click on 'Name|Value|Type' area
  • 3. In menu choose 'Configure debugger'
  • 4. Configure hot keys in 'Envioronment' tab

Additional info here.

четверг, 16 августа 2018 г.

Qt - check QObject derived class type

Example of using DelegateModel for hierarchical tree of data.

Tag* tag = new Tag();
Tag* tag_cast = qobject_cast<QObject*>(tag);
if(tag_cast) qDebug() << "Cool!";
else qDebug() << "oh..";

Additional info here and here.