Questions on Pie chart example
From http://doc.trolltech.com/4.3/itemviews-chart.html
I'd like to design a window in QT Designer rather than designing the window all in code. But I can't figure out
1. How do I set the splitter? I don't see any splitter widget in QT designer
2. I can place the table view, but not the pie chart, since the former exists as an option in QT designer while the latter does not. Is there a way I can get that pie chart to be a widget I can drag in QT designer?
Thanks
Re: Questions on Pie chart example
Also, the sort function doesn't do anything.
Code:
tableView.setSortingEnabled(true);
tableView.sortByColumn(valueColumn,Qt::DescendingOrder);
When I traced it down, it went to
Code:
{
Q_UNUSED(column);
Q_UNUSED(order);
// do nothing
}
I guess that means displaying the data sorted would actually sort the SQL table? I don't want to change the table, I just want to display the data sorted.
Besides that, I'm using QSqlQueryModel because I want the user to be able to type in arbitrary queries. setQuery is protected with QSqlTableModel