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. Problem when new an object in slot
Forum Updated to NodeBB v4.3 + New Features

Problem when new an object in slot

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 805 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.
  • L Offline
    L Offline
    Landy
    wrote on last edited by
    #1

    hi guys,

    i wanna new a QLabel in a slot, and add it into another QWidget.
    but the QLabel didn't work, the problem is that, the text and image can not be displayed.
    i remember that, it's unavalable to new object in slot. if so, how can i solve this problem?
    i wanna add a QLabel when the signal is emited, do u guys have any good solution?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Fist good step is to show us your code. Then explain what you mean by "the text and image cannot be displayed" - so QLabel is created without errors, but not displayed? Also, what is this bit about unavailability?

      You would be better off adding the new QLabel into a QLayout, not QWidget, too.

      (Z(:^

      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