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. Allocate QLabel of a QFrame inside a Slot function

Allocate QLabel of a QFrame inside a Slot function

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 254 Views 1 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.
  • C Offline
    C Offline
    cjacquel2021
    wrote on last edited by
    #1

    Hello,
    When I allocate the QLabel of a Qframe inside a Slot function it does not work, when I allocate outside the Slot function its working.
    Could you help ?
    Thx

    JonBJ Pl45m4P 2 Replies Last reply
    0
    • C cjacquel2021

      Hello,
      When I allocate the QLabel of a Qframe inside a Slot function it does not work, when I allocate outside the Slot function its working.
      Could you help ?
      Thx

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @cjacquel2021
      Not from this description, no, since whether the code is in a slot is not relevant. Show your code.

      1 Reply Last reply
      2
      • C cjacquel2021

        Hello,
        When I allocate the QLabel of a Qframe inside a Slot function it does not work, when I allocate outside the Slot function its working.
        Could you help ?
        Thx

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

        @cjacquel2021

        You need to assign the label to a layout or show() it. Doesn't matter where you create it.
        What do you mean by "QLabel of a QFrame"? Label inside the frame?
        Just add the label to the frame layout.


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

        ~E. W. Dijkstra

        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