Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDockWidget separator
Qt 6.11 is out! See what's new in the release blog

QDockWidget separator

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi all,
    i'm working with qt 4.8.4.
    I need to style separator of QDockWidget, i know that with QSS QMainWindow::separator i can style separator. It works well only when QDockWidget hasn't fixed size.
    @ qDock->widget()->setSizePolicy(QSizePolicy::Policy::Minimum,QSizePolicy::Policy::Minimum);
    qDock->widget()->setMinimumHeight(0);
    qDock->widget()->setMaximumHeight(5);
    @
    !http://www.qtcentre.org/attachment.php?attachmentid=9708&d=1382451351&thumb=1(Example )!

    But if QDockWidget have fixed size, the color of separator is always default system.

    @
    qDock->widget()->setSizePolicy(QSizePolicy::Policy::Minimum,QSizePolicy::Policy::Minimum);
    qDock->widget()->setMinimumHeight(0);
    qDock->widget()->setMaximumHeight(0);
    @
    !http://www.qtcentre.org/attachment.php?attachmentid=9709&d=1382451353&thumb=1(Example )!

    How can i mantain color also with fixed size?

    Thank you

    Marco

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved