question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better Table widget UI

See original GitHub issue

I have personally extended the table widget and I think some of the features should also be integrated into magicgui’s Table widget:

  • Float values are replaced to “…”, which makes it inconvenient as a table viewer → This can be solved by overriding displayText method of QStyledItemDelegate.
  • Column width should be automatically and/or interactively resizable → QTableWidget.resizeColumnsToContents() and QHeaderView.setSelectionResizeMode(QHeaderView.Interactive) are useful for this purpose.
  • Change editability of table data using editable setter → QTableWidget.setEditTriggers(QTableWidget.NoEditTriggers)
  • Make table header editable? → This is a little bit tricky but temporal QLineEdit can do this.

Are there any plan of update like these? Since I already have a prototype of these features in my repo, I think I can help.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hanjinliucommented, Dec 13, 2021

yeah, but it seems there are not so much demand for editing headers? Maybe it’s safer to keep them non-editable.

0reactions
tlambert03commented, Dec 13, 2021

no worries! thanks again for the improvements. I guess the one kind of remaining is still

Make table header editable? → This is a little bit tricky but temporal QLineEdit can do this

right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Table - Dribbble
Discover 300+ Data Table designs on Dribbble. ... Want more inspiration? ... Data Tables — Inbox clean data inbox messages minimal order table...
Read more >
The Complete Table Widget: Building Complex ... - Appsmith
Using Appsmith allows you to focus on the logic behind your tables instead of fiddling around creating the UI, connecting to the API, ......
Read more >
The Table Widget - Responsive and Adaptive UI in Flutter
The Table Widget · In employee.dart , we define a class representing an employee with a static method that returns a list of...
Read more >
How To Setup Table Widget Inline Editing - YouTube
Table widget v2 is here, and it's just amazing. With this new update, you can directly edit data on the table widget, just...
Read more >
Top 19+ Remarkable JavaScript Table Libraries and Plugins
Before we introduce the best javascript table libraries, let's go through the evaluation criteria. ... Webix JS Datatable UI widget.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found