当前位置: 动力学知识库 > 问答 > 编程问答 >

c++ - Dynamically generated QGLWidget in Qt Designer

问题描述:

I would like to add a dynamic QGLWidget to the user interface of my application. By dynamic I mean that a certain parameter/variable will decide on which QGLWidget subclass to instantiate. Will that be possible to achieve in Qt Designer? Can I create for example an abstract class which I then inherit from to create say two concrete subclasses and promote a QWidget in the UI to the type of that abstract class?

分享给朋友:
您可能感兴趣的文章:
随机阅读: