Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there design mode for Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

Is there design mode for Qt Creator?

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 4 Posters 5.8k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #21

    That was just an example in the case you'd be creating your widget as part of your application start in main. Feel free to adapt that to whatever class constructor/function fits.

    Like I said before, your child class assume that the parent is of a certain type that provides that signal, which by design is a bad idea.

    You are now implementing a hack just to work around the fact that this expectation fails when using Designer which should also trigger an alarm.

    Where exactly are you creating PyPGDataTextBox instances ?
    What is your need of refreshsignal ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Panoss
      wrote on last edited by Panoss
      #22

      @SGaist said in Is there design mode for Qt Creator?:

      Where exactly are you creating PyPGDataTextBox instances ?
      What is your need of refreshsignal ?

      My PyPGDataTextBox instances are not created with code, they are created by Qt Designer.
      When a PyPGDataTextBox recieves 'refreshsignal', it updates it 's text.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #23

        Then put the connection code in the constructor of the widget where you put PyPGDataTextBox in.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved