![]() ![]() In a nutshell, I don't understand what Qt Creator exactly does and if I would benefits form it for my purpose. However it also has more stuff such as an "Headers" section etc. Is that correct? For exemple, in Qt Creator, if I start a new project, I can choose Application => Qt Widgets Application which gives me something very similar to Qt Designer in the "Forms" section containing a "mainwindows.ui" file. It seems to include everything Qt Designer can do but has much more options. However, after having installed Qt Creator and Qt Designer, I am not fully sure if I correctly understand the difference between them and which one is better to use for a given purpose and for my purpose.įor Qt Designer, it seems fairly obvious when you open it. So, I would like to start playing around with GUI design and thus, would like to use Qt. What I would like instead is a GUI on which I could display what is on the oscilloscope in real time, choose which channel(s) I want to display on my GUI and save the data when I click on a "save" button. Currently, we change the channel number in our code, run the code and the data is saved in the folder path written in the code. As an exemple, let's say we want to read the channel of an oscilloscope and save the data from this channel. The idea is that the GUI would use the already made Python codes that was developped in our lab and already used to talk with devices as written earlier. However, I would like to spend a bit of time to build GUIs to do that. I work in experimental physics reseach and we usually control and read our devices with some basic code. If you have any problems with the registration process or your account login, please contact us.įirst, a bit of background so you can understand my needs. Registration is fast, simple and absolutely free so please, join our community today! By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. You need an email address from a higher educational institution to get the license. You can find the product descriptions above. Select which Qt educational products you are interested in. If you are looking for information about Qt related issue - register and post your question. Start by filling out and submitting the form found below. Over 90 percent of questions asked here gets answered. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Select the forum that you want to visit from the selection below. Qt Designer/Qt Creator do I understand the difference?īefore you can post: click the register link above to proceed.Using a resource file is probably the most robust method, and gives unlimited options on what icon to use.īe sure to pick a standard icon pack, and think about licensing and attributions, and some other things like that. ![]() Using the Qt built-ins is fast to figure out and use, but is fairly limited. Using a stock library on your target system is probably the fastest. Overriding the current icon theme qDebug() setIcon(widget->style()->standardIcon(QStyle::SP_BrowserReload)) QIcon("/usr/share/icons/gnome/16x16/actions/list-add.png"))) įind the icon in the qt resource system.Īdd the icon in a qrc file in your build, then reference it's path. usr/share/icons/oxygen/16x16/actions/list-add.pngįorcing with fallback icon in QIcon::fromThemeįind the icon on the filesystem: ui->toolButton->setIcon(QIcon::fromTheme("list-add", usr/share/icons/gnome/scalable/actions/list-add.svg usr/share/icons/gnome/32x32/actions/list-add.png I did a locate on my system and found these: /usr/share/icons/gnome/16x16/actions/list-add.png I found list-add.png and list-remove.png fit the bill. On linux, I wanted to get a plus and a minus icon. if you check your target system for the theme search paths and set the theme name, you are more likely to have success. If the desired icon isn't there, Qt Designer won't be able to do any of the from theme, named icons.īut. If it can find it in the QIcon::themeSearchPaths() for the QIcon::themeName() QIcon::fromTheme works under specific conditions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |