Results 1 to 5 of 5

Thread: Qt Creator: connecting actions trigged to slots

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Apr 2015
    Posts
    28
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Creator: connecting actions trigged to slots

    It is available both as a stand-alone tool as well as integrated in QtCreator.
    Where do I find the Qt Designer as a stand alone application? I can find a lot of stuff to download on http://www.qt.io/download-open-source/ but there is no explicit link for the designer as far as I can see.

    Just don't connect in QtDesigner, connect in code.
    That's what I tried to do first. According to the hierarchy on the top right in QtCreator, I have MainWindow (QMainWindow) ->toolBar (QToolBar) ->actionScan (QAction). So I wrote this line of code:

    Qt Code:
    1. self.toolBar.actionScan.trigged.connect(scan)
    To copy to clipboard, switch view to plain text mode 

    and I got this when I run the code: AttributeError: 'QToolBar' object has no attribute 'actionScan'
    Last edited by ecce; 20th April 2016 at 19:31.

Similar Threads

  1. Connecting many SIGNALS to SLOTS
    By Alex22 in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2015, 09:31
  2. connecting Pop up Menu List to actions/functions
    By ebsaith in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2013, 07:43
  3. Connecting QML signals with Qt slots
    By KIBSOFT in forum Qt Quick
    Replies: 1
    Last Post: 15th November 2010, 09:18
  4. Connecting custom class actions
    By Toshikazu in forum Qt Programming
    Replies: 3
    Last Post: 15th October 2009, 15:31
  5. Connecting to Undeclared Slots
    By Dumbledore in forum Qt Tools
    Replies: 5
    Last Post: 11th October 2007, 17:19

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
  •  
Qt is a trademark of The Qt Company.