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. SetHorizontalScrollBar deletes the scrollbar instead of the former scrollbar and has no effect in my QGraphicsview
Qt 6.11 is out! See what's new in the release blog

SetHorizontalScrollBar deletes the scrollbar instead of the former scrollbar and has no effect in my QGraphicsview

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 668 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.
  • K Offline
    K Offline
    korkodinos
    wrote on last edited by
    #1

    I have added a new Qt Designer Form Class by Template QTabWidget and in the center of it I have placed a QGraphicsview to which I would like to replace the horizontal and vertical ScrollBars with other scrollbars in my layout.

    I have highlighted the QGraphicsview and scrollbars in the image below!http://tech-it.gr/Screenshot1.JPG(Layout Screenshot)!

    The problem is that the following command line, instead of replacing the horizontal scroll bar with the one I have in my layout, it deletes my horizontalscrollbar.
    @this->ui->graphicsView->setHorizontalScrollBar(this->ui->horizontalScrollBar);@

    Could anyone tell me why could this be happening?

    I have uploaded the project zip here "Your text to link here...":http://tech-it.gr/example.zip

    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