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. [SOLVED] make a widget extends automatically when its width is exceeded
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] make a widget extends automatically when its width is exceeded

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 693 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.
  • youzkingY Offline
    youzkingY Offline
    youzking
    wrote on last edited by youzking
    #1

    i am painting on a widget wich is insdide a QScrollArea,
    i want that the widget extends automatically when its width is exceeded so i can consult the result by scrolling the QScrollArea,

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      i f I understood correctly you're trying to implement something that allows to scroll over a plot.
      In that case (if you can't or simply don't want use 3rd libraries); I suggest to move to QGraphicsScene.

      Using QGraphicsScene/View you can set the data in the scene and view them using the view (scrolling and zooming are ready for you).

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      youzkingY 2 Replies Last reply
      1
      • M mcosta

        Hi,

        i f I understood correctly you're trying to implement something that allows to scroll over a plot.
        In that case (if you can't or simply don't want use 3rd libraries); I suggest to move to QGraphicsScene.

        Using QGraphicsScene/View you can set the data in the scene and view them using the view (scrolling and zooming are ready for you).

        youzkingY Offline
        youzkingY Offline
        youzking
        wrote on last edited by
        #3

        @mcosta
        !!
        okk , i'll see about QGraphicsScene,
        this may be what m searching for ,

        1 Reply Last reply
        0
        • M mcosta

          Hi,

          i f I understood correctly you're trying to implement something that allows to scroll over a plot.
          In that case (if you can't or simply don't want use 3rd libraries); I suggest to move to QGraphicsScene.

          Using QGraphicsScene/View you can set the data in the scene and view them using the view (scrolling and zooming are ready for you).

          youzkingY Offline
          youzkingY Offline
          youzking
          wrote on last edited by
          #4

          @mcosta

          this is exactly what i need ^^
          thank you !! ^^

          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