Results 1 to 5 of 5

Thread: How can I configure a color in a wizard?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Oct 2017
    Posts
    18
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: How can I configure a color in a wizard?

    Hi,

    thanks a lot for your valuable hint! Think, I now understand your design that decouples the way the color is determined on the QWizardPage subclass VisualPropertiesPage from the use of the value in the QWizard subclass GraphWizard's accept() method. So I added this simple connect statement in the GraphWizard's constructor (must admit that in between I renamed lineColor to penColor:-):

    Qt Code:
    1. connect(ui->visualPropertiesPage, SIGNAL(penColorSet(QColor)), this, SLOT(setPenColor(QColor)));
    To copy to clipboard, switch view to plain text mode 
    and in the VisualProperties class's slot method on_penColorBtn_clicked I added an emit statement that emits the

    Qt Code:
    1. penColorSet(QColor &color)
    To copy to clipboard, switch view to plain text mode 
    signal. All this works now like a charm and I gained some better understanding of good design with Qt!

  2. The following user says thank you to apatwork for this useful post:

    d_stranz (10th November 2017)

Similar Threads

  1. Replies: 6
    Last Post: 27th May 2014, 08:20
  2. using wizard
    By arjita in forum Newbie
    Replies: 14
    Last Post: 28th July 2012, 18:48
  3. Replies: 1
    Last Post: 29th September 2011, 11:14
  4. To Wizard or Not ?
    By fassage in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 10:42
  5. How to add a Wizard ?
    By npc in forum Qt Tools
    Replies: 4
    Last Post: 24th July 2007, 14:28

Tags for this Thread

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.