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. Promoting widget don't create the header

Promoting widget don't create the header

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 756 Views
  • 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.
  • D Offline
    D Offline
    Daguerreo
    wrote on last edited by
    #1

    Hello everyone,

    I'm trying promoting widgets and use it in another class, when I try to use mywidget it gives me the error "could not fine mywidget.h". The problem is mywidget.h actually does not exists in my laptop... what I'm missing?

    K J 2 Replies Last reply
    0
    • D Daguerreo

      Hello everyone,

      I'm trying promoting widgets and use it in another class, when I try to use mywidget it gives me the error "could not fine mywidget.h". The problem is mywidget.h actually does not exists in my laptop... what I'm missing?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Daguerreo
      It goes the other way around I guess.

      You are designing a wigdet derived from Qt class (e.g. QFrame or any other). This creates the implementation and declaration files (in your case mywidget.h). Than your can place a more generic Qt class into your design (e.g. QFrame). This may be promoted to your mywidget.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Daguerreo
        wrote on last edited by
        #3

        You don't understand, the problem is the file "mywidget.h" is not created and no exists in my machine when I promote the widget.

        1 Reply Last reply
        0
        • D Daguerreo

          Hello everyone,

          I'm trying promoting widgets and use it in another class, when I try to use mywidget it gives me the error "could not fine mywidget.h". The problem is mywidget.h actually does not exists in my laptop... what I'm missing?

          J Offline
          J Offline
          Jakob
          wrote on last edited by
          #4

          @Daguerreo You're a bit vague as to what you're trying to do. What is 'mywidget' and what do you mean by 'promoting'?

          The only thing I'm aware of where you can 'promote', is in qdesigner. That again would imply that 'mywidget' is some widget you designed for use inside qdesigner, which then implies you would have implemented the interface described on http://doc.qt.io/qt-5/qdesignercustomwidgetinterface.html. Did you maybe forget to implement the 'includeFile' method?

          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