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. Configure Connection - what does greyed -out - "Edit " button do ?

Configure Connection - what does greyed -out - "Edit " button do ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 883 Views 2 Watching
  • 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    31329370-875b-42b4-9480-a166a76c4c43-image.png

    Pl45m4P 1 Reply Last reply
    0
    • A Anonymous_Banned275

      31329370-875b-42b4-9480-a166a76c4c43-image.png

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @AnneRanch

      You can add your own slots or signals there to establish the connection.
      But as said in another post, you need to have the code in your headers and code files.
      It's grayed out, because you don't have a code file for QPlainTextEdit since you don't subclass it in order to add some of your custom signals.
      It should work for your MainWindow since it's already a subclass of QMainWindow by default.
      It will just replace the connect(.....) statement and not write any code for you.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      A 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @AnneRanch

        You can add your own slots or signals there to establish the connection.
        But as said in another post, you need to have the code in your headers and code files.
        It's grayed out, because you don't have a code file for QPlainTextEdit since you don't subclass it in order to add some of your custom signals.
        It should work for your MainWindow since it's already a subclass of QMainWindow by default.
        It will just replace the connect(.....) statement and not write any code for you.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @Pl45m4 It is still unclear - "who is on first".
        If I use QtDesigner in simple "push button, clear list" connection , the "code" is buried in XML .... If want to do "see" the code options in "edit" I have to implement both slot and signal in my C code before I can do the connection , using "edit" in QtDesigner. If I do that , I get the "connect code" in XML again.
        It is fine when it all works, but pretty awkward to implement.
        Definitely not intuitive and no fun switching between QtCreator and QtDesigner.
        It sort of confirms my PERSONAL opinion that GUI is not always an user friendly improvement when it is just a fancy layer over CLI.
        PS I do no have any "connect" in MainWindow so I still do not see the "edit " buttons.

        l will work on that , but beginning to share other's opinions that doing "connect" in QtDesigner is not very productive .

        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