Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. custom widgets
    Log in to post

    • SOLVED uic + CMake + GCC + custom widgets + out-of-source problem
      Tools • cmake custom widget header custom widgets uic • • stan423321  

      12
      0
      Votes
      12
      Posts
      606
      Views

      Well, huh. I thought I tried that one with the bigger project before, but it does work with the test program here, so that must have been something else. Thank you for your assistance.
    • UNSOLVED Creating custom widgets based on constructors with parameters without default values
      General and Desktop • ui design custom widgets constructors non-default initialisation • • elfring  

      17
      0
      Votes
      17
      Posts
      2875
      Views

      @elfring Hi I am curious on how the clarification will evolve Me too. As what you wish for - takes a huge amount of code and forces a preconceived structure on the users and its going from very complicated and involving to plain impossible in scope :) In 30 years of programming, i have not seen any WYSIWYG editor that supported adding unknown classes to static code generation for GUI instance construction.
    • SOLVED QWidget::render() in custom QWidget
      General and Desktop • qwidget stylesheet rendering custom widgets • • J.Hilk  

      6
      0
      Votes
      6
      Posts
      4422
      Views

      Just realized, that I had still thread still open. I'll share how I managed to circumvent the problem. Sadly I haven't found a real solution as of now. In the function that makes the screenshot, I added this line just before calling QWidget::render this->setStyleSheet("cStackedWidget {background-color:white;}" "QWidget#LiveStatus{background-color:white;}" ... //List of all QStackedwidget Pages ... "QWidget#FanThreshhold{background-color:white;}"); For some reason I have to set the stylesheet new for each time. Simply setting this once will not work. Anyway, I'll mark it as solved, unless someone else has a new idea !?
    • UNSOLVED Not possible to set layout on custom widget plugin
      General and Desktop • plugin custom widgets • • Hallot  

      3
      0
      Votes
      3
      Posts
      883
      Views

      Thanks for the link, but I am mostly interested in being able to do it all through the Qt Designer UI via a plugin.
    • UNSOLVED Problem with using layouts with custom widgets
      General and Desktop • qlayout custom widgets • • bigThrum  

      2
      0
      Votes
      2
      Posts
      474
      Views

      @bigThrum Hi, wid->setLayout(layout); wid2->setLayout(layout); This will not work. You need to have a separate layout object for each of your widgets, and a separate set of QPushButton objects for each of the layouts. Kind regards.