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. QT5 widget promotion: button stop working.
Forum Updated to NodeBB v4.3 + New Features

QT5 widget promotion: button stop working.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 877 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.
  • J Offline
    J Offline
    Jufa
    wrote on last edited by
    #1

    Hello there!

    I have this scenario:

    1- I have a mainwindow form, with only an empty qwidget in it.
    2- I promote this widget to my class form "menu". This class form has only a qpushbutton and an empty qwidget.
    3- This menu qpushbutton has a slot on_pushButton_clicked that shows a qdebug message. It works.
    4- Now, I promote the empty qwidget in "menu" to my button class. My button class has only a qlabel and a qpushbutton. This qpushbutton has not any slot associated to it.

    My error is that, when I run the proyect at this point, the menu->qpushbutton has stopped working, and now the qpushbutton that shows the slot on_pushButton_clicked is the button->qpushbutton.

    What is what I'm doing wrong? This almost hasn't code, aside the on_pushButton_clicked slot in "menu" class.

    Thanks for your answers and your time.

    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