Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Clip part of the viewport in place
Forum Updated to NodeBB v4.3 + New Features

Clip part of the viewport in place

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 165 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rknall
    wrote on last edited by
    #1

    Hello

    I am currently trying to implement a "Fixed Column" widget (think fixed columns in Excel) for an open-source project. I started with the example from Qt, but that was based on a QTableView and we need a QTreeView widget.

    One of the remaining issues I am having is, that the header is not set in place.

    0_1567517721350_d589b192-15d0-4977-8f3f-4bdd0e301a96-image.png

    As you can see, the two columns for Time and Destination are off, when scrolling sideways. This is what it looks when no scrolling had occured:

    0_1567517785241_27f29102-adc9-4aa0-be83-329c4d13faff-image.png

    I had some ideas, but none of those seemed to work. My latest is to fix either the viewport and prevent an update, or to implement a second header and stick that.

    Anyone got a better idea? I can gladly share the code if you like (or you can take a look at https://code.wireshark.org/review/c/34410 which contains the latest version.

    Any help would be greatly appreciated

    kind regards
    Roland

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved