Results 1 to 5 of 5

Thread: Qt designer integration and cmake

  1. #1
    Join Date
    Jan 2009
    Posts
    47
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt designer integration and cmake

    Qt designer source code generation does not seem to work in cmake based project. I use Visual studio 2008 with Qt4 integration and cmake 2.6. My code compiles fine, but I can't add any more signals when trying to add a slot by double clicking on a widget of my UI file OR select "Connect Signal ..." when right click on the widget.

    I saw that someone posted a similar issues but couldn't find any solutions. Please help. Thanks.
    TNG

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer integration and cmake

    Can you add those methods when using Visual Studio with qmake? Honestly qmake nor cmake have nothing to do with the integration so I don't see why would using cmake prevent the integration from working. You might be looking for the problem in a wrong place.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2009
    Posts
    47
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt designer integration and cmake

    Yes, it works fine without cmake so I'm wondering if it's just some cmake flags that I missed.
    I don't know if it's related to my problem or not, but the "Add Qt Class..." and "Add Qt GUI Class..." are not available when I tried to add something new to the project.
    Attached Images Attached Images
    Last edited by ttvo; 26th March 2009 at 16:21.
    TNG

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer integration and cmake

    How did you create the visual studio project in the first place?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2009
    Posts
    47
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Qt designer integration and cmake (SOLVED)

    Adding the following line to the CMakeLists.txt fixed the problem

    set_target_properties (<project_name> PROPERTIES VS_KEYWORD Qt4VSv1.0)
    Last edited by ttvo; 28th April 2009 at 15:35.
    TNG

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.