Results 1 to 18 of 18

Thread: custom slider question (very advanced)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: custom slider question (very advanced)

    So you told it's slider in meaning of whole control, not single image/button.
    But... where shall it be "3d" as you mentioned at threads beginning?
    Do you want buttons to scroll around?
    I assume that you want this widget do draw partially transparently as on wysota's picture, so i think it can be i.e. scrollArea with custom paintEvent that omits background drawing.
    See GrEEn (Graphics Effects Environment)
    http://sourceforge.net/project/platf...roup_id=232746
    a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: custom slider question (very advanced)

    On picture, the shape of this icon switcher is linear, i need it in circle form, like vynils or cds in jukebox.
    Qt 5.3 Opensource & Creator 3.1.2

  3. #3
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: custom slider question (very advanced)

    Shall this circle be planar (according to screen's surface) or somehow 3d?
    See GrEEn (Graphics Effects Environment)
    http://sourceforge.net/project/platf...roup_id=232746
    a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).

  4. #4
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: custom slider question (very advanced)

    Regarding to fact, that icons in upper part of circle will be smaller (like they are more distant) than the icons in lower part of circle and the selected icon is the biggest, i think it will look like 3d.
    Qt 5.3 Opensource & Creator 3.1.2

  5. #5
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: custom slider question (very advanced)

    So you want icons on sides skewed like they would be rotated?
    It can be done without real 3d features with a bit of coordinates computation it can be emulated on transformed() pixmaps.

    QSlider is not best base widget i think. I suggest a completely custom widget that inherits QWidget & QButtonGroup, you can add then a number of buttons & your widgets draws them in a 3d-like circle. It's reusable then...
    See GrEEn (Graphics Effects Environment)
    http://sourceforge.net/project/platf...roup_id=232746
    a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).

  6. #6
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: custom slider question (very advanced)

    Hmm, why QButtonGroup? Aha, QButtonGroup is not visual, this is good idea ...

    Let me check now ...
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Custom tab widget question
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 11:17

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
  •  
Qt is a trademark of The Qt Company.