Ok it worked!
By the way, is there a way to exclude horizontal header of the table widget from the table widget's frame?
I tried horizontalHeader.setFrameStyle(QFrame::NoFrame), not interestingly it didn't work![]()
Ok it worked!
By the way, is there a way to exclude horizontal header of the table widget from the table widget's frame?
I tried horizontalHeader.setFrameStyle(QFrame::NoFrame), not interestingly it didn't work![]()
I have one more question that I just encountered that is;
I want to setTextAlignment for the items in the table such as the following:
Qt Code:
for( int row=0; ...) { for(int column=0;...) { myTableWidget.item ( row, column ).setTextAlignment(Qt::AlignCenter); } }To copy to clipboard, switch view to plain text mode
it only aligns the first - table(0,0) - item but not the rest.
What could be the problem?
Thanks in advance
Last edited by jpn; 15th March 2009 at 10:59. Reason: missing [code] tags
it's done!
the error was just a minor logical error. The code I posted above is working now.
Bookmarks