Probably I coded some invalid styleSheets in my project but now it is so big that is impossible to finde where.

The console throws this:

"Warning: Could not parse stylesheet of object 0xdb8858010 ((null):0, (null))"

I tried to create a widget where I type the address 0xdb8858010 and my wish is to get its name so I did:

Qt Code:
  1. void mProj::getWidgetName()
  2. {
  3. bool readedok;
  4. qlonglong mempos = lnGetWidget->text().toLongLong(&readedok, 16);
  5. QString text;
  6. if (readedok)
  7. {
  8. text="Pos: "+QString::number(mempos)+" ";
  9. QObject* qo =mempos;
  10.  
  11. QWidget* qw = reinterpret_cast<QWidget*>(qo);
  12. if (qw)
  13. text += " name " + qw->objectName();
  14. else
  15. text += " cannot found qobject";
  16. }
  17. else
  18. {
  19. text="Cannot be read";
  20. }
  21. lbGetWidget->setText(text);
  22. }
To copy to clipboard, switch view to plain text mode 

But I get a crash.


Any thought about this?

Thanks in advance.