Is there a way to select any of the resources and it would highlight that specific row?
This is more of a visibility thing. When reading through this chart, sometimes it is hard to focus on let say Room A's row if Room B's row is filled. So is there a way to either highlight your selection or grey out the unselected?
Related
I have a series of buttons that I want to appear in columns at the bottom of my QML page. The number of columns across should depend on the width of the window, as the window width increases I want more columns to be added. (And fewer rows as a result as components are pulled up to the previous line)
This is sort of like a Flow component, but I want the items to appear in columns, evenly spaced across the page, in rows and columns (columns centered vertically, at the bottom of the page). Sort of like GridLayout.
I can't figure out what QML component(s) to use to achieve this.
I think what you're looking for is a GridView. See the layout documentation.
I'm not positive, but based on your description I think you would just need to set the flow property to GridView.FlowTopToBottom.
I have a datagrid that always show the clr-dg-placeholder even if I did not ask for it.
Is there a way to avoid having it displayed? Right now, if my grid has only one line, I can see a second one that corresponds to the clr-dg-placeholder item.
Thanks
I have a problem with the extendedSelection of my QTableView.
The Problem is that i have some whitespace around my columns and rows and when i click this whitespace the highlighting of my selected Fields is lost.
Its not ocurring when i click somewhere else in my application, only in the whitespace.
Also when i set the selection mode to SingleSelection it works just fine.
here is a short gif to illustrate the problem
https://gyazo.com/8e4ae161aaff25a4afa1b588579ddd01
thank you everyone who can help me
sincerely
Because that white region belongs to QTableWidget, so when you click that place it resets the selection and selected cell is gone since none of cell is selected. But when you click outside of the QTableWidget, selection state still exists.So If you do not want to this, you can increase column widths like this:
ui.tableWidget->setColumnWidth(columnNumber,columnWidht);
or you can decrease the width of QTableWidget to fit the columns. So user can not see and click this white region.
Freezing Columns in JQGrid
describes how to use jqGrid 4.3 frooze column feature in code.
Frozen column border is not visible and there is no users interface to frooze/unfrooze columns.
How to allow end users to use this feature for selection any number of columns, for example:
Double click in column border in header froses left columns
Frozed columns border line becomes bold, wider and changes color a little
How to implement this or any other way to froze/unfroze and show frozen columns?
This is posted also in
http://www.trirand.com/blog/?page_id=393/feature-request/provide-user-interface-for-column-freeze-and-show-frozen-column-border-graphically/
I am new to QT, and I'm using QTableView, as shown below:
On the left side of the table, Qt is automatically showing a row number, as I've noted in red. How do I get rid of these numbers?
My other problem is, if I click any cell, only that cell is selected. How can I make it to where, when a user clicks a cell, the entire row is selected, like I noted in pink? For example, if I click the testApp-copy.itr cell then the entire third row should be selected.
Use
table->verticalHeader()->hide();
to get the vertical header and hide it, and
table->setSelectionBehavior(QAbstractItemView::SelectRows);
to make QTableView only select whole rows.
You may also want to specify the selection mode.