Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Custom QMainWindow slots. How do I access them in Qt Designer?
QtWS25 Last Chance

Custom QMainWindow slots. How do I access them in Qt Designer?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.3k 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.
  • P Offline
    P Offline
    primem0ver
    wrote on last edited by
    #1

    I have five slots in my header and code for my class inherited from QMainWindow. There doesn't seem to be an ability to import those slots into Qt Designer. I have compiled the code and tried using the Signal/Slot editor for the window but neither have allowed me to connect QAction triggered() signal with a specific slot in my code.

    Here they are:

    public slots:
    	void onAddPlatformClicked();
    	void onAddPluginClicked();
    	void onBrowseSource();
    	void onBrowseDestination();
    	void onGenerateClicked();
    
    1 Reply Last reply
    0
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      Never worked for me as well. I just use connect() in the constructor for custom slots and signals.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      0
      • P Offline
        P Offline
        primem0ver
        wrote on last edited by primem0ver
        #3

        Good to know. Qt should fix this problem though. Qt has some great ideas about designing forms but this is a rather gaping hole since other designers make this easy to do.

        artwawA 1 Reply Last reply
        0
        • P primem0ver

          Good to know. Qt should fix this problem though. Qt has some great ideas about designing forms but this is a rather gaping hole since other designers make this easy to do.

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on last edited by
          #4

          @primem0ver TBH I find it much quicker (but that's just me) to do all signal/slot connections this way, written into constructor or other relevant place in the code instead of using designer.

          For more information please re-read.

          Kind Regards,
          Artur

          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