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. [Solved] one problem with QDialogButtonBox
Forum Updated to NodeBB v4.3 + New Features

[Solved] one problem with QDialogButtonBox

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k 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.
  • N Offline
    N Offline
    nimingzhe2008
    wrote on last edited by
    #1

    Hello everyone.
    This is part of my code.
    @ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);//buttonBox is a QDialogButtonBox widget I added in Qt //Creator's design mode @
    When I compiled,Qt Creator said that sentence is" error:invalid use of incomplete type 'struct QPushButton' "
    I don't know why and how to solve it.
    Thank you for your attention.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hostel
      wrote on last edited by
      #2

      Try add:
      @
      #include <QPushButton>
      @

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nimingzhe2008
        wrote on last edited by
        #3

        It's OK now.Thank you

        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