Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QObject::connect syntax in auto-generated ui cpp files
Forum Updated to NodeBB v4.3 + New Features

QObject::connect syntax in auto-generated ui cpp files

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 265 Views 2 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.
  • B Offline
    B Offline
    Blue AKKO
    wrote on 5 Nov 2019, 19:08 last edited by
    #1

    Hi, I am working on this project with Qt VS Tools (Qt 5.13.1/msvc2017_64) on VS2017. I really liked the Qt5 syntax of QObject::connect/disconnect() as it checks errors at compiling instead of runtime. However the auto-generated ui_$$$.cpp files from my tool are still using Qt4 SLOT/SIGNAL syntax. And it's not compatible with the Qt5 syntax - i.e. a connection defined by Qt4 syntax cannot be disconnected if the disconnect() is written in Qt5 syntax. I wonder if there is a way to configure the tool so it generates Qt5 syntax connect/disconnect from .ui files? Thanks a lot.

    J 1 Reply Last reply 6 Nov 2019, 05:56
    1
    • B Blue AKKO
      5 Nov 2019, 19:08

      Hi, I am working on this project with Qt VS Tools (Qt 5.13.1/msvc2017_64) on VS2017. I really liked the Qt5 syntax of QObject::connect/disconnect() as it checks errors at compiling instead of runtime. However the auto-generated ui_$$$.cpp files from my tool are still using Qt4 SLOT/SIGNAL syntax. And it's not compatible with the Qt5 syntax - i.e. a connection defined by Qt4 syntax cannot be disconnected if the disconnect() is written in Qt5 syntax. I wonder if there is a way to configure the tool so it generates Qt5 syntax connect/disconnect from .ui files? Thanks a lot.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Nov 2019, 05:56 last edited by
      #2

      @Blue-AKKO I just checked the uic (the tool which generates the code from ui files) parameters and could not find anything for that. I suggest you ask on the Qt developers mailing list.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      1/2

      5 Nov 2019, 19:08

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved