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. Scrollbar in Scroll area cant set value
Forum Updated to NodeBB v4.3 + New Features

Scrollbar in Scroll area cant set value

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 374 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.
  • A Offline
    A Offline
    andredubbs22
    wrote on last edited by
    #1

    Hy, I have a scroll area with some items in it. I want to move the scrollbar to a set value (the middle for example), but it's not allowing me to do so. It throws me a "Member Access to incomplete type" error.

    (Don't know if this is relevant, but my scroll area has a "container" widget in whose layout I dump a bunch of labels)

    The ui:
    85ed6cbb-4b13-40aa-acfb-4bc824664acc-image.png

    The cpp file:
    14cb474e-2a5a-453e-9df3-dd24ee06e5dd-image.png

    The app in action:
    c0286f12-b500-417b-93ec-4e35b4db99df-image.png
    The idea is to move the scroll bar so that i can see the search node, in this case 3 which is further down the scroll area. Somewhat like this:
    8ee66a98-9cae-469c-a421-03b3ba237327-image.png

    Chris KawaC 1 Reply Last reply
    0
    • A andredubbs22

      Hy, I have a scroll area with some items in it. I want to move the scrollbar to a set value (the middle for example), but it's not allowing me to do so. It throws me a "Member Access to incomplete type" error.

      (Don't know if this is relevant, but my scroll area has a "container" widget in whose layout I dump a bunch of labels)

      The ui:
      85ed6cbb-4b13-40aa-acfb-4bc824664acc-image.png

      The cpp file:
      14cb474e-2a5a-453e-9df3-dd24ee06e5dd-image.png

      The app in action:
      c0286f12-b500-417b-93ec-4e35b4db99df-image.png
      The idea is to move the scroll bar so that i can see the search node, in this case 3 which is further down the scroll area. Somewhat like this:
      8ee66a98-9cae-469c-a421-03b3ba237327-image.png

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @andredubbs22 Access to incomplete type means it's only forward declared and you're simply missing #include <QScrollBar>.

      A 1 Reply Last reply
      2
      • Chris KawaC Chris Kawa

        @andredubbs22 Access to incomplete type means it's only forward declared and you're simply missing #include <QScrollBar>.

        A Offline
        A Offline
        andredubbs22
        wrote on last edited by
        #3

        @Chris-Kawa omg it worked bro thanks alot!!

        1 Reply Last reply
        0
        • A andredubbs22 has marked this topic as solved on

        • Login

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