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. QScrollBar fixed maximum size with both orientations
Forum Updated to NodeBB v4.3 + New Features

QScrollBar fixed maximum size with both orientations

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 924 Views 1 Watching
  • 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.
  • I Offline
    I Offline
    ilean
    wrote on last edited by
    #1

    Hi all.

    I'm trying to make my app scriptable and I want to let users to put scrollsbar horizontal or vertical.
    The problem comes when I wanna config orientation together bar size, to become smaller. I'd use maximumHeight but, of course, when toggled to vertical it looks wrong. Without fixing maximums, toggles fine.

    Is there any solution to fix it without write code to control orientation switching?

    Thanks!

    1 Reply Last reply
    0
    • B Offline
      B Offline
      b1gsnak3
      wrote on last edited by
      #2

      (If I understood correctly) Try using a custom signal that is emitted when he switches between vertical / horizontal and a slot that sets maximumHeight for horizontal and maximumWidth for vertical...

      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