Results 1 to 2 of 2

Thread: How to access menu item created by QtDesigner?

  1. #1
    Join Date
    Jan 2012
    Location
    ShangHai, PRC of China
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to access menu item created by QtDesigner?

    I have created menuBar and menus with Qt Designer. sometime, but want to hide some menus (actions) with code. It seems that's impossible because no way to get the action objects.

    Certainly, if writing codes to create those menus, I can hide or show them with a pointer to the object. But I just want to know how the code to control objects created by qe designer.

    Thanks.

    sorry, close and open the project again, it works. that should be a bug of qt creator.

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


  3. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to access menu item created by QtDesigner?

    The action objects are part of the ui point just like any widget created in designer.

    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:


Similar Threads

  1. Access Object Created by javascript in qml
    By alizadeh91 in forum Qt Quick
    Replies: 6
    Last Post: 23rd February 2012, 16:06
  2. Replies: 1
    Last Post: 4th November 2011, 12:25
  3. SOLVED:QtDesigner:QPushButton PopUp Menu
    By thefatladysingsopera in forum Newbie
    Replies: 0
    Last Post: 21st August 2011, 18:20
  4. How to access Widgets created in Tab View
    By kapoorsudhish in forum Newbie
    Replies: 5
    Last Post: 23rd October 2009, 14:12
  5. Replies: 5
    Last Post: 10th August 2009, 11:50

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.