Results 1 to 3 of 3

Thread: Adding color wheel to my UI?

  1. #1
    Join Date
    Oct 2015
    Posts
    28
    Qt products
    Qt5
    Platforms
    MacOS X Windows
    Thanks
    10

    Default Adding color wheel to my UI?

    Hello,

    I found this color wheel online that I'm interested in using in my own UI. But it seems that its position, size etc. are all set within the cpp file and the UI hasn't been used. How do I put the color wheel into my own UI so that I can add some sliders and buttons to it?

    The color wheel can be found here:
    https://forum.qt.io/topic/19261/colorwheel

    Thanks in advance.

    //Leutzig

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Adding color wheel to my UI?

    I assume by "the UI" you mean the Qt Designer components (standalone or in Creator). You can place a generic QWidget in your UI as a placeholder and use the Promote feature to instruct Designer to generate code for a class ColorWheel instead.
    http://doc.qt.io/qt-4.8/designer-usi...m-widgets.html

    The ability to drag and drop a ColorWheel into the UI and see a colour wheel on the screen will require writing a plugin for Designer.

  3. #3
    Join Date
    Oct 2015
    Posts
    28
    Qt products
    Qt5
    Platforms
    MacOS X Windows
    Thanks
    10

    Default Re: Adding color wheel to my UI?

    Thanks a lot! Worked perfectly

Similar Threads

  1. List wheel widget in Qt
    By SSqt5.2 in forum Newbie
    Replies: 4
    Last Post: 4th December 2014, 11:47
  2. Wheel Scroller
    By Vishal@05 in forum Newbie
    Replies: 0
    Last Post: 24th March 2014, 05:24
  3. Replies: 0
    Last Post: 3rd January 2012, 18:11
  4. combining wheel events
    By mcarter in forum Qt Programming
    Replies: 1
    Last Post: 13th January 2010, 06:59
  5. Wheel and QTest
    By skrzypu in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 21:05

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.