Ok. I found a workaround solution, maybe not the most elegant but It works.
Qt Code:
tab->setCurrentIndex(1);To copy to clipboard, switch view to plain text mode
Ok. I found a workaround solution, maybe not the most elegant but It works.
Qt Code:
tab->setCurrentIndex(1);To copy to clipboard, switch view to plain text mode
No, it's guaranteed to crash if either the "obj" or "tab" pointers are NULL.I found a workaround solution, maybe not the most elegant but It works.
Why is it so hard for people to understand that the way you avoid segfaults is to check pointers for NULL before using them?
Bookmarks