• 5944阅读
  • 6回复

求助 如何让qwizard 中的指定页的上一步按钮变灰? [复制链接]

上一主题 下一主题
离线ioptimtic
 

只看楼主 倒序阅读 楼主  发表于: 2008-05-29
— 本帖被 XChinux 执行加亮操作(2008-06-02) —
      我做了一个向导,其中有一个页需要屏蔽上一步按钮,找了很久都没能解决,请哪位高手帮忙指点下?不胜感激!
离线ioptimtic

只看该作者 1楼 发表于: 2008-06-02
怎么没人理我呢???
离线guoyun_he

只看该作者 2楼 发表于: 2008-06-02
(QWizard::backButton())->setEnabled( FLASE);
离线ioptimtic

只看该作者 3楼 发表于: 2008-06-03
error C2064: 项不会计算为接受 0 个参数的函数
QWizard::backButton()不是类/结构/联合/泛型类型
离线steinlee

只看该作者 4楼 发表于: 2008-06-04
I think you can use Q3Wizard to make your code working first and then try to use Qt4. In Qt3 there is function backButton() in Q3Wizard. It means that you use Q3Wizard instead of QWizard.

=============================================================================

The QWizard class is no longer part of the Qt public API. It has been renamed Q3Wizard and moved to Qt3Support. In Qt 4 applications, you can obtain the same result by combining a QStackedWidget with a QDialog and provide QPushButtons yourself.

There is also a QtWizard solution available from Trolltech. The new class was designed to work both for linear wizards and for wizards with more complex structures which let users reach different pages depending on the options they select. Based on the feedback we get, QtWizard may be considered for inclusion in a future Qt release.
Looking for remote C/C++ and Qt 兼职
离线ioptimtic

只看该作者 5楼 发表于: 2008-06-05
Thank you very much!
离线ioptimtic

只看该作者 6楼 发表于: 2008-06-05
When using QWizard, it is not possible to disable the backbutton on a QWizardpage;
it's a bug;
i find it at "http://trolltech.com/developer/task-tracker/index_html?method=entry&id=186437"
快速回复
限100 字节
 
上一个 下一个