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. How to align text in custom QWidgetAction with text in standard QAction?

How to align text in custom QWidgetAction with text in standard QAction?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 536 Views
  • 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #1

    Hi,
    I have a menu that contains a standard checkable QAction, and below it two custom QWidgetAction. Each QWidgetAction consists of a QHBoxLayout with a QLabel and a QComboBox as shown in the picture below.

    0_1516826140419_584782f7-3157-47c4-9a6d-6637c34e2808-image.png

    I would like to align the texts of the QLabel with the text of the standard QAction, i.e. along the vertical horizontal line shown, using the left margin property of the layout.

    Where can I find the info to determine how wide the check box is, and the various margins in the QAction menu item?

    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