Results 1 to 2 of 2

Thread: Setting "defaultAction" of QToolButtons in Qt designer.

  1. #1
    Join Date
    Oct 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Setting "defaultAction" of QToolButtons in Qt designer.

    Hi,

    When I have a QToolButton (not in a toolbar, but as a widget in a from) I can "connect" it to an action with "setDefaultAction", which has many advantages (i.E. the toolButton gets disabled when the action gets disabled).
    Can I make this connection also directly in qt4 designer?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Setting "defaultAction" of QToolButtons in Qt designer.

    As far as I remember this has to be done in code. Designer can't handle it. Just add an empty button and then add an action to it in code.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. setting QToolbar "hover" event
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2008, 13:53
  2. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  3. Replies: 4
    Last Post: 18th September 2007, 19:49
  4. Setting QFrame palette in Designer doesn't "stick"
    By Doug Broadwell in forum Qt Tools
    Replies: 1
    Last Post: 9th September 2007, 21:44
  5. Setting up qmake to run "Hello World"
    By Rolsch in forum Newbie
    Replies: 2
    Last Post: 27th May 2006, 02:37

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.