Results 1 to 7 of 7

Thread: Alternative to QWidget's "Promote to" feature?

Threaded View

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

    Default Alternative to QWidget's "Promote to" feature?

    Hi Forum,

    I'm having this weird problem with my color picker that I will eventually use to control RGB LEDs. I found a color wheel (see link) for my project that I wanted to connect to my palette so that when I change the color wheel's current color, the palette will display that color (updatePalette is called from the color wheel's MouseMoveEvent function). But this only works when the color wheel is given its own window (using show() in main). Whenever I try using the QWidget's "Promote to" feature, the program instantly crashes when I move the color wheel cursor.

    You can check out the attached pictures for further understanding. But I'm mostly interested in hearing if there are alternative ways to add this color wheel to my UI without having it as a separate window or without using the QWidget's "Promote to" feature?

    Color wheel with colorwheel.cpp and colorwheel.h:
    https://forum.qt.io/topic/19261/colorwheel

    //Leutzig
    Attached Images Attached Images

Similar Threads

  1. Replies: 15
    Last Post: 14th March 2013, 22:05
  2. Replies: 3
    Last Post: 2nd October 2012, 10:16
  3. "new" + "delete" a QWidget and its children
    By vkincaid in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2010, 21:51
  4. Add "Check for updates" feature
    By jiveaxe in forum Qt Programming
    Replies: 20
    Last Post: 19th September 2008, 16:39
  5. Using the "pixmap function" feature
    By Michiel in forum Qt Tools
    Replies: 8
    Last Post: 24th May 2007, 14:55

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.