Results 1 to 2 of 2

Thread: Problem drawing with Qt6 Fusion style - other styles working fine

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem drawing with Qt6 Fusion style - other styles working fine

    I've solved this. In earlier Qt versions, the style determined the orientation of the progress bar by checking the 'orientation' field in the QStyleOptionProgressBar instance. In Qt6, it seems this field has been eliminated and the bar's orientation is now captured in the 'state' member of the QStyleOptionProgressBar. Ensure that the State_Horizontal bit is set here; otherwise, the Fusion style will default to treating the progress bar as vertically oriented.

    Qt Code:
    1. opt.state |= QStyle::State_Horizontal
    To copy to clipboard, switch view to plain text mode 

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

    d_stranz (18th August 2023)

Similar Threads

  1. Replies: 1
    Last Post: 8th August 2017, 18:23
  2. Replies: 0
    Last Post: 25th January 2015, 04:23
  3. Replies: 3
    Last Post: 11th January 2009, 05:22
  4. Scrollbar not working fine way
    By santosh.kumar in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2008, 04:58
  5. Problem with Qt4 Styles
    By drake1983 in forum Newbie
    Replies: 2
    Last Post: 10th February 2008, 03:11

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.