Results 1 to 2 of 2

Thread: Resize QwtSlider to full length of available space

  1. #1
    Join Date
    Feb 2020
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Resize QwtSlider to full length of available space

    Am very happy to have found qwt widgets, and am using QwtSlider. Using QGroupBox and QLayout classes, I am able to construct GUIs with widgets that resize themselves. But, this does not work with QwtSlider (unless I am doing something silly). I had a similar problem with another widget, and it was because it contained a pixmap, and pixmaps do not automatically resize, for reasons I understand. I assume the scale on the QwtSlider is also a pixmap, and this may be why I am having this problem. However, in the QwtSlider documentation, the picture shows beautiful sliders all the full length. What is the key to achieving that, please?

  2. #2
    Join Date
    Feb 2020
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Resize QwtSlider to full length of available space

    As often happens, I did find the source code for the pretty slider example: It is in the source files for sliderbox and slidertab in the examples/controls folder of the qwt distribution. I'm sure this will "show me the way".

Similar Threads

  1. Replies: 0
    Last Post: 9th June 2019, 12:25
  2. Replies: 13
    Last Post: 3rd January 2015, 21:41
  3. QwtSlider resize
    By vratojr in forum Qwt
    Replies: 1
    Last Post: 13th July 2011, 13:28
  4. Replies: 2
    Last Post: 11th April 2011, 17:03
  5. Auto resize Widget to maximum avail. space
    By pospiech in forum Qt Programming
    Replies: 16
    Last Post: 15th April 2008, 15:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.