Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    1
    1
    525
    Loading More Posts
    • 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
      korkodinos last edited by

      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 Reply Quote 0
      • First post
        Last post