Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 设计器源代码分析
QtWS25 Last Chance

设计器源代码分析

Scheduled Pinned Locked Moved Chinese
3 Posts 3 Posters 3.5k 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.
  • R Offline
    R Offline
    Roger.Wei
    wrote on 6 Jan 2013, 03:50 last edited by
    #1

    有朋友分析过设计器(qt designer)的源代码吗?交流一下它的架构如何?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pass86
      wrote on 30 Jan 2013, 13:18 last edited by
      #2

      正在研究。。

      Qt4.8.4的发现这样一句代码

      c:\Qt\4.8.4\tools\designer\src\components\propertyeditor\propertyeditor.cpp

      #if QT_VERSION >= 0x04FF00
      configureMenu->addSeparator();
      configureMenu->addAction(m_treeAction);
      configureMenu->addAction(m_buttonAction);
      #endif

      0x04FF00 ?? 让我很费解

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted487
        wrote on 25 Feb 2013, 20:00 last edited by
        #3

        4.x的最大版本号呀
        其实写成 QT_VERSION >= 0×050000 也可以
        因为不会有4.FF发布的
        严格说应该写成 04FFFF

        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